Exemple #1
0
 /// <summary>
 /// Create a new dense matrix as a copy of the given row 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 OfRowArrays(IEnumerable <double[]> rows)
 {
     return(new DenseMatrix(DenseColumnMajorMatrixStorage <double> .OfRowArrays((rows as double[][]) ?? rows.ToArray())));
 }
 /// <summary>
 /// Create a new dense matrix as a copy of the given row 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 OfRowArrays(params double[][] rows)
 {
     return(new DenseMatrix(DenseColumnMajorMatrixStorage <double> .OfRowArrays(rows)));
 }
 /// <summary>
 /// Create a new dense matrix as a copy of the given row 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 OfRowArrays(params Complex32[][] rows)
 {
     return(new DenseMatrix(DenseColumnMajorMatrixStorage <Complex32> .OfRowArrays(rows)));
 }