ParseJagged() public static method

Converts a matrix represented in a System.String into a jagged array.
public static ParseJagged ( string str, IMatrixFormatProvider provider ) : double[][]
str string
provider IMatrixFormatProvider
return double[][]
コード例 #1
0
 /// <summary>
 ///   Converts the string representation of a vector to its
 ///   double-precision floating-point number vector equivalent.
 /// </summary>
 /// <param name="str">The string representation of the vector.</param>
 /// <param name="provider">
 ///   The format provider to use in the conversion. Default is to use
 ///   <see cref="DefaultMatrixFormatProvider.CurrentCulture"/>.
 /// </param>
 /// <returns>A double-precision floating-point number matrix parsed
 /// from the given string using the given format provider.</returns>
 ///
 public static double[] Parse(string str, IMatrixFormatProvider provider)
 {
     return(MatrixFormatter.ParseJagged(str, provider).Flatten());
 }
コード例 #2
0
ファイル: Matrix.Parsing.cs プロジェクト: colinnuk/accord
 /// <summary>
 ///   Converts the string representation of a matrix to its
 ///   double-precision floating-point number matrix equivalent.
 /// </summary>
 /// <param name="s">The string representation of the matrix.</param>
 /// <param name="provider">
 ///   The format provider to use in the conversion. Default is to use
 ///   <see cref="DefaultMatrixFormatProvider.CurrentCulture"/>.
 /// </param>
 /// <returns>A double-precision floating-point number matrix parsed
 /// from the given string using the given format provider.</returns>
 ///
 public static double[][] ParseJagged(string s, IMatrixFormatProvider provider)
 {
     return(MatrixFormatter.ParseJagged(s, provider));
 }
コード例 #3
0
 /// <summary>
 ///   Converts the string representation of a vector to its
 ///   double-precision floating-point number vector equivalent.
 /// </summary>
 /// <param name="str">The string representation of the matrix.</param>
 /// <returns>A double-precision floating-point number matrix parsed
 /// from the given string using the given format provider.</returns>
 ///
 public static double[] Parse(string str)
 {
     return(MatrixFormatter.ParseJagged(str, DefaultMatrixFormatProvider.CurrentCulture).Flatten());
 }