Returns a new FloatComplexVector instance from a given string representation using the specified style.

Namespace:  CenterSpace.NMath.Core
Assembly:  NMath (in NMath.dll) Version: 5.1.0.0

Syntax

C#
public FloatComplexVector(
	string s,
	NumberStyles styles
)
Visual Basic (Declaration)
Public Sub New ( _
	s As String, _
	styles As NumberStyles _
)
Visual C++
public:
FloatComplexVector(
	String^ s, 
	NumberStyles styles
)

Parameters

s
Type: System..::.String
A string representation of a vector.
styles
Type: System.Globalization..::.NumberStyles
One or more number styles.

Remarks

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.
CopyC#
string s = "(4.523E+000,4.323E+000) (4.555E+000,9.943E+000) (-4.4E-002,-5.0E+000)";
v = new FloatComplexVector( s, NumberStyles.Number | NumberStyles.AllowExponent );

See Also