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

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Getting the nonzero coefficient of a sparse matrix*From*: Alberto Luaces <alberto.luaces@xxxxxxxxx>*Date*: Thu, 18 Feb 2016 09:35:28 +0100

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().

**Follow-Ups**:**Re: [eigen] Getting the nonzero coefficient of a sparse matrix***From:*Cedric Doucet

**References**:**[eigen] Getting the nonzero coefficient of a sparse matrix***From:*Cedric Doucet

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] unsubscribe** - Next by Date:
**[eigen] Custom expression type API stability** - Previous by thread:
**[eigen] Getting the nonzero coefficient of a sparse matrix** - Next by thread:
**Re: [eigen] Getting the nonzero coefficient of a sparse matrix**

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