Boost logo

Boost :

From: boost (boost_at_[hidden])
Date: 2002-05-05 14:38:37


Salut,

On Friday 03 May 2002 21:29, Joerg Walter wrote:
> We recently discussed, that this could be achieved by accessing the
> internal representation of a sparse_matrix. In the meantime we (hopefully
> ;-) added all necessary members to allow for something like
>
> for (numerics::sparse_matrix<double>::array_type::const_iterator itm =
> m.data().begin ();
> itm != m.data ().end ();
> ++ itm) {
> std::cout << (*itm).first << " " << (*itm).second <<
> std::endl;
> }
>
> Is this ok for you?

If it works for dense and hermitean matrices, yes.
I'm, sorry, but I'm not using the ublas sparse matrices.

Best wishes,
Peter


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk