Exemple #1
0
 /// <summary>
 /// Converts matrix to a DenseAnsi. If matrix is already a DenseAnsi, then returns the given matrix without copying.
 /// </summary>
 /// <param name="inputMatrix">The matrix to convert from</param>
 /// <param name="parallelOptions">A ParallelOptions instance that configures the multithreaded behavior of this operation.</param>
 /// <returns>A denseAnsi version of the matrix</returns>
 public static DenseAnsi AsDenseAnsi(this Matrix <string, string, char> inputMatrix, ParallelOptions parallelOptions)
 {
     if (inputMatrix is DenseAnsi)
     {
         return((DenseAnsi)inputMatrix);
     }
     else
     {
         return(inputMatrix.ToDenseAnsi(parallelOptions));
     }
 }
Exemple #2
0
 /// <summary>
 /// Converts matrix to a DenseAnsi. If matrix is already a dense collection, then returns the given matrix without copying.
 /// </summary>
 /// <param name="inputMatrix">The matrix to convert from</param>
 /// <param name="parallelOptions">A ParallelOptions instance that configures the multithreaded behavior of this operation.</param>
 /// <returns>A denseAnsi version of the matrix</returns>
 public static DenseAnsi AsDenseAnsi <T>(this Matrix <string, string, T> inputMatrix, ParallelOptions parallelOptions)
 {
     return(inputMatrix.ToDenseAnsi(parallelOptions));
 }