[eigen] Obtaining triplets from sparsematrix

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

Hi all,

I managed to construct sparse matrices by using
triplets list.

But I would like to do the reverse, i.e. obtain the triplets
from the sparse matrix. Is there a simple way for that?

What I would like is something like
std::vector<Eigen::Triplet<T> > eMat.getListTriple();

I searched but there does not seem to be such a function
in the code. Any help appreciated.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/