Click or drag to resize

FloatMatrix(String, Char) Constructor

Constructs a FloatMatrix instance from a formatted string with a specified delimiter.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public FloatMatrix(
	string s,
	char delimiter
)

Parameters

s  String
A formatted string representation of a matrix.
delimiter  Char
Delimiter between cells.
Remarks
Matrix cells are separated by the specified character. Rows are separated by newlines. This constructor will have to look through the entire string to calculate how many rows and columns exists. If you know the number of rows and columns use this constructor: FloatMatrix( int, int, string, char )
Example
Example strings that will give you this 3x3 matrix:
C#
// 1 2 3
// 4 5 6
// 7 8 9

string s = "1,2,3\n4,5,6\n7,8,9\n";
string t = "1\t2\t3\n4\t5\56\n7\t\89\n";
See Also