You are here: Symbol Reference > Sparse Namespace > Classes > TSparseMtx Class > public > SparseToTriplets Method > TSparseMtx.SparseToTriplets Method (TMtx, boolean)
MtxVec VCL
ContentsIndex
PreviousUpNext
TSparseMtx.SparseToTriplets Method (TMtx, boolean)

Convert sparse matrix to triplets.

Pascal
procedure SparseToTriplets(const DstTriplets: TMtx; ImInRow: boolean = False); overload;

Triplets are stored in the first three rows of the matrix. First row stores the row indices, the second stores the column indices and the third row stores the matrix values. In case of a complex matrix and if ImInRow is True, the imaginary part's of the complex numbers are stored in the fourth row.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!