Re: [eigen] matrix / scalar |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
erm... have you read the tutorial ? depending on the version of eigen you use: or http://eigen.tuxfamily.org/dox-devel/TutorialArrayClass.html greetings, -- Thomas Capricelli <orzel@xxxxxxxxxxxxxxx> http://www.freehackers.org/thomas On Saturday 04 December 2010 06:51:55 Andy Somogyi wrote: > Hey Guys, > > what do you think about adding some operators to ease operating on a matrix with a scalar, i.e. what I'm thinking about is something like: > > MatrixXi mat = ...; > > // set all matrix values to scalar > mat = 1; > > // add scalar to all matrix values > mat = mat + 1; // or optionally > mat += 1; > > |
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |