Sparse Matrix<T>.Extract Triangle Method
Constructs an upper or lower triangular sparse matrix from a general sparse matrix.
Definition
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
A SparseMatrix<T>.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public virtual SparseMatrix<T> ExtractTriangle(
MatrixTriangle storedTriangle,
MatrixDiagonal matrixDiagonal
)
Parameters
- storedTriangle MatrixTriangle
- A MatrixTriangle value that specifies whether the upper or lower triangle of the matrix should be returned.
- matrixDiagonal MatrixDiagonal
- A MatrixDiagonal value that specifies whether the diagonal of the returned matrix should contain all ones.
Return Value
SparseMatrix<T>A SparseMatrix<T>.