TSparseMtx::Resize Method

TMtxVec *Resize(int Len, bool ZeroIt = false);

Resizes the sparse matrix to a new number of non-zeros.

#NameTypeDescription
1Lenint
2ZeroIt = falsebool
Remarks:

Resizes the sparse matrix to a new number of non-zeros. The existing values are preserved up to the new size. This includes the sparsity pattern arrays Ai and Ap. This resize does not change the number of Columns of the sparse matrix, but only the number of non-zeros that can be stored in the matrix.

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