Re: [eigen] Getting the nonzero coefficient of a sparse matrix

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


Cedric Doucet writes:

> Hello!
>
> I would like to get the value of a nonzero coefficient of a sparse
> matrix which has been passed as a const argument in a function.
> However, I don't manage to do it because coeffRef function discards
> cv-qualifiers when I try to use it.
>
> Is there a way to do it anyway?

Hi Cedric, just use coeff().



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