{cgo,native}: use square brackets for matrix typography

This commit is contained in:
kortschak
2016-02-16 13:19:05 +10:30
parent 3d87f56b23
commit a9fa88d974
4 changed files with 49 additions and 49 deletions

View File

@@ -24,25 +24,25 @@ import (
// reflectors. In all cases the ones on the diagonal are implicitly represented.
//
// If direct == lapack.Forward and store == lapack.ColumnWise
// V = ( 1 )
// ( v1 1 )
// ( v1 v2 1 )
// ( v1 v2 v3 )
// ( v1 v2 v3 )
// V = [ 1 ]
// [v1 1 ]
// [v1 v2 1]
// [v1 v2 v3]
// [v1 v2 v3]
// If direct == lapack.Forward and store == lapack.RowWise
// V = ( 1 v1 v1 v1 v1 )
// ( 1 v2 v2 v2 )
// ( 1 v3 v3 )
// V = [ 1 v1 v1 v1 v1]
// [ 1 v2 v2 v2]
// [ 1 v3 v3]
// If direct == lapack.Backward and store == lapack.ColumnWise
// V = ( v1 v2 v3 )
// ( v1 v2 v3 )
// ( 1 v2 v3 )
// ( 1 v3 )
// ( 1 )
// V = [v1 v2 v3]
// [v1 v2 v3]
// [ 1 v2 v3]
// [ 1 v3]
// [ 1]
// If direct == lapack.Backward and store == lapack.RowWise
// V = ( v1 v1 1 )
// ( v2 v2 v2 1 )
// ( v3 v3 v3 v3 1 )
// V = [v1 v1 1 ]
// [v2 v2 v2 1 ]
// [v3 v3 v3 v3 1]
// An elementary reflector can be explicitly constructed by extracting the
// corresponding elements of v, placing a 1 where the diagonal would be, and
// placing zeros in the remaining elements.