|
|
|
@ -119,6 +119,17 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32 |
|
|
|
{ |
|
|
|
} |
|
|
|
|
|
|
|
/// <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<Complex32> matrix) |
|
|
|
{ |
|
|
|
return new DiagonalMatrix(DiagonalMatrixStorage<Complex32>.OfMatrix(matrix.Storage)); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Create a new diagonal matrix as a copy of the given two-dimensional array.
|
|
|
|
/// This new matrix will be independent from the provided array.
|
|
|
|
@ -150,6 +161,7 @@ namespace MathNet.Numerics.LinearAlgebra.Complex32 |
|
|
|
/// The matrix to copy from must be diagonal as well.
|
|
|
|
/// A new memory block will be allocated for storing the matrix.
|
|
|
|
/// </summary>
|
|
|
|
[Obsolete("Use DiagonalMatrix.OfMatrix instead. Scheduled for removal in v3.0.")] |
|
|
|
public DiagonalMatrix(Matrix<Complex32> matrix) |
|
|
|
: this(matrix.RowCount, matrix.ColumnCount) |
|
|
|
{ |
|
|
|
|