Matrix<T>.To Symmetric Matrix Method
Returns this matrix as a SymmetricMatrix<T>, copying first when necessary.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.5.0
C#
A SymmetricMatrix<T>. If this matrix is already symmetric, the same instance is returned; otherwise the result has independent dense storage.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.5.0
public SymmetricMatrix<T> ToSymmetricMatrix(
MatrixTriangle storedTriangle = MatrixTriangle.Upper
)Parameters
- storedTriangle MatrixTriangle (Optional)
- A MatrixTriangle value that indicates whether the elements of the symmetric matrix are stored in the upper or lower triangular portion of the matrix.
Return Value
SymmetricMatrix<T>A SymmetricMatrix<T>. If this matrix is already symmetric, the same instance is returned; otherwise the result has independent dense storage.