| FloatComplexLowerTriMatrixToString(String) Method |
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public string ToString(
string formatString
)
Public Function ToString (
formatString As String
) As String
public:
String^ ToString(
String^ formatString
)
member ToString :
formatString : string -> string
Parameters
- formatString String
- A format string used to format the matrix values.
Return Value
StringA string containing the formatted matrix values.
Remarks
The representation is:
rows x columns [ matrix values row by row ]
Zero values are printed.
Example
A 4 x 4 lower triangular matrix that looks like this:
| 1,4 0,0 0,0 0,0 |
| 2,-5 3,9 0,0 0,0 |
| 4,-7 -3,5 2,6 0,0 |
| 7,0 8,1 9,2 10,-1 |
would be converted to this string using formatString of "F1"
4x4 [ (1.0,4.0) (0.0,0.0) (0.0,0.0) (0.0,0.0) (2.0,-5.0) (3.0,9.0) (0.0,0.0) (0.0,0.0) (4.0,-7.0) (-3.0,5.0) (2.0,6.0) (0.0,0.0) (7.0,0.0) (8.0,1.0) (9.0,2.0) (10.0,-1.0) ]
See Also