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