| DoubleComplexVectorParse(TextReader, NumberStyles) Method |
Constructs a DoubleComplexVector instance from the given text reader using
the specified style.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleComplexVector Parse(
TextReader reader,
NumberStyles styles
)
Public Shared Function Parse (
reader As TextReader,
styles As NumberStyles
) As DoubleComplexVector
public:
static DoubleComplexVector^ Parse(
TextReader^ reader,
NumberStyles styles
)
static member Parse :
reader : TextReader *
styles : NumberStyles -> DoubleComplexVector
Parameters
- reader TextReader
- A text reader containing a string representation of a vector.
- styles NumberStyles
- One or more number styles.
Return Value
DoubleComplexVectorRemarks
Acceptable strings are of the form
[ (r1,i1) (r2,i2) (r3,i3) ... ].
The data elements can be in any format that is supported by
Double.Parse( string, NumberStyles ). Note that whitespace,
even if set as a group separator, is taken as a data separator.
Parentheses are taken as complex number separators not as negative
currency values.
string s = "(4.523E+000,4.323E+000) (4.555E+000,9.943E+000) (-4.4E-002,-5.0E+000)";
TextReader reader = new StringReader( s );
v = new DoubleComplexVector( reader, NumberStyles.Number | NumberStyles.AllowExponent );
See Also