Symmetric Matrix<T, TSlice, TStorage2D>.Extract Upper Triangle Method
Constructs an upper TriangularMatrix<T> whose
elements are contained in the upper triangular portion
of a SymmetricMatrix<T>.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
A TriangularMatrix<T> whose elements are contained in the lower triangular portion of the matrix.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
public override TriangularMatrix<T> ExtractUpperTriangle(
MatrixDiagonal unitDiagonal = MatrixDiagonal.NonUnitDiagonal
)
Parameters
- unitDiagonal MatrixDiagonal (Optional)
- If true, the matrix is unit triangular. Only the elements below the diagonal in the matrix are considered. If false, the diagonal elements of the matrix are taken as the diagonal elements of the triangular matrix.
Return Value
TriangularMatrix<T>A TriangularMatrix<T> whose elements are contained in the lower triangular portion of the matrix.
Exceptions
Argument | the matrix is null. |