SparseMatrix<T>.ExtractTriangle 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#
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>.

See Also