Click or drag to resize
Accord.NET (logo)

VectorTryParse Method

Converts the string representation of a vector to its double-precision floating-point number vector 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[] vector
)
Request Example View Source

Parameters

s
Type: SystemString
The string representation of the vector.
provider
Type: Accord.MathIMatrixFormatProvider
The format provider to use in the conversion. Default is to use CurrentCulture.
vector
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