TSparseMtx::UpperTriangle Method

TSparseMtx *UpperTriangle(TSparseMtx *Src, bool Diagonal = false);

Extract upper part of the Mtx.

#NameTypeDescription
1SrcTSparseMtx *
2Diagonal = falsebool
Remarks:

Copies only the upper triangular part of the Mtx sparse matrix. The result is stored in the calling sparse matrix. If the Diagonal boolean parameter is true then the Mtx matrix main diagonal elements will be copied to the calling matrix main diagonal elements. If the Diagonal parameter is false, the calling matrix main diagonal elements will be set to zero.

See Also: TSparseMtx::LowerTriangle
Declared in Dew::Math::TSparseMtx · Dew.Math/sparse.h · Cross-compiler