SparseMatrix<T>.ExtractTriangle Method

Constructs an upper or lower triangular sparse matrix from a general sparse matrix.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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