| FloatComplexMatrixParse(TextReader) Method |
Constructs a FloatComplexMatrix instance from the given text
reader.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static FloatComplexMatrix Parse(
TextReader reader
)
Public Shared Function Parse (
reader As TextReader
) As FloatComplexMatrix
public:
static FloatComplexMatrix^ Parse(
TextReader^ reader
)
static member Parse :
reader : TextReader -> FloatComplexMatrix
Parameters
- reader TextReader
- A text reader containing a string representation of a matrix.
Return Value
FloatComplexMatrixRemarks
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:
string s = "1 x 3 [ (1.5,1.444) (-4.42992,9.93) (1.4,9.0) ]";
TextReader reader = new StringReader( s );
FloatComplexMatrix M = FloatComplexMatrix.Parse( reader, NumberStyles.Number | NumberStyles.AllowExponent );
See Also