Returns a formatted string representation of this matrix.

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

Syntax

C#
public override string ToString()
Visual Basic (Declaration)
Public Overrides Function ToString As String
Visual C++
public:
virtual String^ ToString() override

Return Value

A string containing the formatted matrix values.

Remarks

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

Examples

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

See Also