Click or drag to resize
Accord.NET (logo)

MatrixTryParse Method (String, IMatrixFormatProvider, Double)

Converts the string representation of a matrix to its double-precision floating-point number matrix equivalent. A return value indicates whether the conversion succeeded or failed.

Namespace:  Accord.Math
Assembly:  Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax
public static bool TryParse(
	string s,
	IMatrixFormatProvider provider,
	out double[,] matrix
)
Request Example View Source

Parameters

s
Type: SystemString
The string representation of the matrix.
provider
Type: Accord.MathIMatrixFormatProvider
The format provider to use in the conversion. Default is to use CurrentCulture.
matrix
Type: SystemDouble
A double-precision floating-point number matrix parsed from the given string using the given format provider.

Return Value

Type: Boolean
See Also