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#
lb ub rows x columns [ matrix values row by row ]
where lb is the lower bandwidth and ub is the uper bandwidth. Zero values are printed.

Examples

CopyC#
2 1 8x8 [ 2 5 0  0  0  0  0  0  
          3 6 9  0  0  0  0  0  
          4 7 10 13 0  0  0  0  
          0 8 11 14 17 0  0  0  
          0 0 12 15 18 21 0  0  
          0 0 0  16 19 22 25 0  
          0 0 0  0  20 23 26 29  
          0 0 0  0  0  24 27 30  ]

See Also