Exemple #1
0
 /// <summary>
 ///   Converts the values of a matrix using the default converter.
 /// </summary>
 /// <typeparam name="TInput">The type of the input.</typeparam>
 /// <typeparam name="TOutput">The type of the output.</typeparam>
 /// <param name="matrix">The matrix to be converted.</param>
 ///
 /// <example>
 /// <code source="Unit Tests\Accord.Tests.Math\Matrix\Matrix.Conversion.cs" region="doc_convert_matrix" />
 /// <code source="Unit Tests\Accord.Tests.Math\Matrix\Matrix.Conversion.cs" region="doc_convert_jagged" />
 /// </example>
 ///
 public static TOutput[][] Convert <TInput, TOutput>(this TInput[][] matrix)
 {
     return(Jagged.Convert(matrix, x => (TOutput)System.Convert.ChangeType(x, typeof(TOutput))));
 }