| DoubleMatrix(Int32, Int32, String, Char) Constructor |
Constructs a DoubleMatrix instance from a formatted string with
a specified delimiter.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleMatrix(
int rows,
int cols,
string s,
char delimiter
)
Public Sub New (
rows As Integer,
cols As Integer,
s As String,
delimiter As Char
)
public:
DoubleMatrix(
int rows,
int cols,
String^ s,
wchar_t delimiter
)
new :
rows : int *
cols : int *
s : string *
delimiter : char -> DoubleMatrix
Parameters
- rows Int32
- Number of rows.
- cols Int32
- Number of columns.
- s String
- A formatted string representation of a matrix.
- delimiter Char
- Delimiter between cells.
Remarks
Matrix cells are separated by the specified character. Rows are
separated by newlines.
Example
Example strings that will give you this 3x3 matrix:
string s = "1,2,3\n4,5,6\n7,8,9\n";
string t = "1\t2\t3\n4\t5\56\n7\t\89\n";
See Also