/// <summary>
 /// Create a new diagonal matrix as a copy of the given other matrix.
 /// This new matrix will be independent from the other matrix.
 /// The matrix to copy from must be diagonal as well.
 /// A new memory block will be allocated for storing the matrix.
 /// </summary>
 public static DiagonalMatrix OfMatrix(Matrix <Complex> matrix)
 {
     return(new DiagonalMatrix(DiagonalMatrixStorage <Complex> .OfMatrix(matrix.Storage)));
 }
 /// <summary>
 /// Create a new diagonal matrix as a copy of the given other matrix.
 /// This new matrix will be independent from the other matrix.
 /// The matrix to copy from must be diagonal as well.
 /// A new memory block will be allocated for storing the matrix.
 /// </summary>
 public static DiagonalMatrix OfMatrix(Matrix <double> matrix)
 {
     return(new DiagonalMatrix(DiagonalMatrixStorage <double> .OfMatrix(matrix.Storage)));
 }
Esempio n. 3
0
 /// <summary>
 /// Create a new diagonal matrix as a copy of the given other matrix.
 /// This new matrix will be independent from the other matrix.
 /// The matrix to copy from must be diagonal as well.
 /// A new memory block will be allocated for storing the matrix.
 /// </summary>
 public static DiagonalMatrix OfMatrix(Matrix <float> matrix)
 {
     return(new DiagonalMatrix(DiagonalMatrixStorage <float> .OfMatrix(matrix.Storage)));
 }
Esempio n. 4
0
 public DiagonalMatrix(Matrix <Complex> matrix)
     : this(DiagonalMatrixStorage <Complex> .OfMatrix(matrix.Storage))
 {
 }
Esempio n. 5
0
 public DiagonalMatrix(Matrix <float> matrix)
     : this(DiagonalMatrixStorage <float> .OfMatrix(matrix.Storage))
 {
 }
Esempio n. 6
0
 public DiagonalMatrix(Matrix <double> matrix)
     : this(DiagonalMatrixStorage <double> .OfMatrix(matrix.Storage))
 {
 }