Dew MtxVec NET
TSparseMtx.TripletsToSparseAndFlush Method
Summary
Construct a sparse matrix by specifying the position of each element in dense matrix.

Class
TSparseMtx

Declaration
Procedure TripletsToSparseAndFlush;

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

Example 1

A[1,0] := 1; A[2,3] := 5; A[4,0] := 2; A.TripletsToSparseAndFlush;
If you later call :A.SparseToDense, you'll construct a dense matrix of form:
0 0 0 0 1 0 0 0 <<< 1,0 0 0 0 5 <<< 2,3 0 0 0 0 2 0 0 0 <<< 4,0

Copyright 2008 Dew Research
http://www.dewresearch.com