| DoubleMatrix(TextReader) Constructor |
Constructs a DoubleMatrix instance from the given text reader.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleMatrix(
TextReader reader
)
Public Sub New (
reader As TextReader
)
public:
DoubleMatrix(
TextReader^ reader
)
new :
reader : TextReader -> DoubleMatrix
Parameters
- reader TextReader
- A reader positioned at the start of a text representation
of a matrix.
Remarks
The text representation must contain the number of rows, followed by an
optional separator character, such as x, followed by the number of
columns. The matrix values, separated by white space, are then read
in row by row. If the sequence of numbers begins with a left bracket
'[', then the numbers are read until a matching right
bracket ']' is encountered. If no brackets are used, numbers
are read until the end of the stream.
Example
Example text representations:
"3 x 3 [ 1 2 3 4 5 6 7 8 9 ]";
"2 2 1.1 -2.2 3.3 -4.4";
See Also