TSparseMtx.TripletsToSparseAndFlush Method

procedure TripletsToSparseAndFlush;

Construct a sparse matrix by specifying the position of each element in dense matrix.

Result: stored in self (calling object)

Remarks:

This method can be used to construct a sparse matrix by specifying the position of each element in dense matrix.

Examples
A[1,0] := 1;
A[2,3] := 5;
A[4,0] := 2;
A.TripletsToSparseAndFlush;
See Also: TSparseMtx.AddSplit