Constructs a FloatComplexMatrix instance from a formatted string and a NumberStyles object.

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

Syntax

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

Parameters

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

Remarks

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.

Examples

Example strings with a style that allows for exponential format ( NumberStyles.Number | NumberStyles.AllowExponent):
CopyC#
string s = "1 x 3 [ (1.500000e+002,1.444000e-001) (4.429923e+005,9.933380e-010) (1.400000e+000,9.000000e-002) ]";
string t = "2 2 (1.10000e+000,-2.200000e-004) (3.332324e+000,-4.443233e+005) (2.090040e+001,-4.012390e+002) (2.090040e+011,-4.012390e+001)";

See Also