Esempio n. 1
0
 /// <summary>
 /// Create a new diagonal matrix and initialize each diagonal value from the provided enumerable.
 /// This new matrix will be independent from the enumerable.
 /// A new memory block will be allocated for storing the matrix.
 /// </summary>
 public static DiagonalMatrix OfDiagonal(int rows, int columns, IEnumerable <float> diagonal)
 {
     return(new DiagonalMatrix(DiagonalMatrixStorage <float> .OfEnumerable(rows, columns, diagonal)));
 }