| FloatMatrix(Int32, Int32, TextReader, NumberStyles, Char) Constructor |
Constructs a FloatMatrix instance from a given text reader with
specified delimiter and styles.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public FloatMatrix(
int rows,
int cols,
TextReader reader,
NumberStyles styles,
char delimiter
)
Public Sub New (
rows As Integer,
cols As Integer,
reader As TextReader,
styles As NumberStyles,
delimiter As Char
)
public:
FloatMatrix(
int rows,
int cols,
TextReader^ reader,
NumberStyles styles,
wchar_t delimiter
)
new :
rows : int *
cols : int *
reader : TextReader *
styles : NumberStyles *
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.
- styles NumberStyles
- One or more number styles.
- delimiter Char
- Delimiter between cells.
Remarks
Matrix cells are separated by the specified character. Rows are
separated by newlines.
Example
Example strings with a style that allows for exponential format (
NumberStyles.Number | NumberStyles.AllowExponent):
"1.500000e+002\t1.444000e-001\t4.429923e+005\n";
"1.10000e+000,-2.200000e-004\n3.332324e+000,-4.443233e+005\n";
See Also