[eigen] matrix / scalar

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


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/