Boost logo

Ublas :

From: Michael Stevens (m-stevens_at_[hidden])
Date: 2005-01-19 13:32:41

Hi Vento,

On Wednesday 19 January 2005 18:54, Vento Neicapelli wrote:

> I start evaluating uBlas lib. Who know how to get the nonzero elements of a
> sparse_matrix (or compressed_matrix)? Is there an iterator?

Yes iterators are the way to do this. For all sparse types they only traverse
the structurally non-zero elements. 'Structurally' means that the actual
value of these elements may be zero due to a previous calculation.

Do you need an example of using matrix iterators?