[eigen] Is post-multiplication by diagonal matrix optimized?

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


Hi,

   I've been told that premultiplication by a diagonal matrix is optimized by 
eigen:

VectorXd v(N);
MatrixXd M(N,N);
v.asDiagonal() * M

  Is M * v.asDiagonal() also recognized and optimized?

thanks,
Manoj



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