Click or drag to resize

FloatComplexUpperTriMatrixToString(String) Method

Returns a formatted string representation of this matrix. Numbers are displayed using the specified format.

ToTabDelimited

ToTabDelimited(String)


Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public string ToString(
	string formatString
)

Parameters

formatString  String
A format string used to format the matrix values.

Return Value

String
A string containing the formatted matrix values.
Remarks
The representation is:
C#
rows x columns [ matrix values row by row ]
Zero values are printed.
Example
A 4 x 4 upper triangular matrix that looks like this:
C#
|  1,4    2,-5   4,-7   7,0   |
|  0,0    3,9    -3,5   8,1   |
|  0,0    0,0    2,6    9,2   |
|  0,0    0,0    0,0    10,-1 |
would be converted to this string using formatString of "F1"
C#
4x4 [ (1.0,4.0) (2.0,-5.0) (4.0,-7.0) (7.0,0.0)  (0.0,0.0) (3.0,9.0) (-3.0,5.0) (8.0,1.0)  (0.0,0.0) (0.0,0.0) (2.0,6.0) (9.0,2.0)  (0.0,0.0) (0.0,0.0) (0.0,0.0) (10.0,-1.0) ]
See Also