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
A format string used to format the matrix values.

Return Value

A string containing the formatted matrix values.

Remarks

The string format is:
CopyC#
rows x columns [ matrix values row by row ]

Examples

A 4 x 4 Hermitian matrix that looks like this:
CopyC#
| (0,0)  (4,6)  (7,2)  (9,3) |
| (4,-6) (1,9)  (5,4)  (8,3) |
| (7,-2) (5,-4) (2,8)  (1,1) |
| (9,-3) (8,-3) (1,-1) (3,2) |
would be converted to this string:
CopyC#
4x4 [ (0,0) (4,6) (7,2) (9,3)  (4,-6) (1,9) (5,4) (8,3)  (7,-2) (5,-4) (2,8) (1,1)  (9,-3) (8,-3) (1,-1) (3,2) ]

See Also