Returns a formatted string representation of this matrix. Numbers are displayed
using the specified format.
Namespace:
CenterSpace.NMath.MatrixAssembly: 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#
Zero values are printed.
rows x columns [ matrix values row by row ]
Examples
A 4 x 4 upper triangular matrix that looks like this:
CopyC#
would be converted to this string:
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) |
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) ]