Returns a formatted string representation of this matrix. Numbers are displayed using the specified format.

Namespace:  CenterSpace.NMath.Matrix
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public string ToString(
	string formatString
)
Visual Basic (Declaration)
Public Function ToString ( _
	formatString As String _
) As String
Visual C++
public:
String^ ToString(
	String^ formatString
)

Parameters

formatString
Type: System..::.String
Format string used to format the matrix values.

Return Value

A string containing the formatted matrix values.

Remarks

The string format is:
CopyC#
hb rows x columns [ matrix values row by row ]
where hb is the half bandwidth . Zero values are printed.

Examples

CopyC#
1 8x8 [ 2 5 0  0  0  0  0  0  
        5 6 9  0  0  0  0  0  
        0 9 10 13 0  0  0  0  
        0 0 13 14 17 0  0  0  
        0 0 0  17 18 21 0  0  
        0 0 0  0  21 22 25 0  
        0 0 0  0  0  25 26 29  
        0 0 0  0  0  0  29 30  ]

See Also