Returns a formatted string representation of this matrix. Numbers are displayed
using the specified format.
Namespace:
CenterSpace.NMath.CoreAssembly: 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
Format string used to format the matrix values.
Return Value
A formatted string representation of this matrix.
Remarks
The string format is:
CopyC#
A space is placed between rows. Each number is formatted using
Double.ToString(formatString) where formatString is the passed parameter.
[number of rows]x[number of columns] [ matrix values row by row]
Examples
For example, with format string of "C"
CopyC#
A space is placed between rows.
2x2 [ ($1.00,$0.00) ($2.00,($1.20)) ($3.30,$0.00) ($4.00,$3.13) ]