Exemple #1
0
 /// <summary>
 /// Create a new dense matrix as a copy of the given column arrays.
 /// This new matrix will be independent from the arrays.
 /// A new memory block will be allocated for storing the matrix.
 /// </summary>
 public static DenseMatrix OfColumnArrays(IEnumerable <double[]> columns)
 {
     return(new DenseMatrix(DenseColumnMajorMatrixStorage <double> .OfColumnArrays((columns as double[][]) ?? columns.ToArray())));
 }
 /// <summary>
 /// Create a new dense matrix as a copy of the given column arrays.
 /// This new matrix will be independent from the arrays.
 /// A new memory block will be allocated for storing the matrix.
 /// </summary>
 public static DenseMatrix OfColumnArrays(params double[][] columns)
 {
     return(new DenseMatrix(DenseColumnMajorMatrixStorage <double> .OfColumnArrays(columns)));
 }
 /// <summary>
 /// Create a new dense matrix as a copy of the given column arrays.
 /// This new matrix will be independent from the arrays.
 /// A new memory block will be allocated for storing the matrix.
 /// </summary>
 public static DenseMatrix OfColumnArrays(params Complex32[][] columns)
 {
     return(new DenseMatrix(DenseColumnMajorMatrixStorage <Complex32> .OfColumnArrays(columns)));
 }