| DoubleComplexMatrixParse(String) Method |
Constructs a DoubleComplexMatrix instance from a formatted string.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleComplexMatrix Parse(
string s
)
Public Shared Function Parse (
s As String
) As DoubleComplexMatrix
public:
static DoubleComplexMatrix^ Parse(
String^ s
)
static member Parse :
s : string -> DoubleComplexMatrix
Parameters
- s String
- A formatted string representation of a matrix.
Return Value
DoubleComplexMatrixRemarks
The string 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 string.
Example
Example strings:
string s = "2 x 2 [ (1,0) (2,1.2) (3.3,0) (4,3.12) ]";
string t = "2 2 (1,0) (2,1.2) (3.3,0) (4,3.12)";
See Also