SparseCompressedColumnMatrix<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.3
C#
public override 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