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

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


Hi,

yes it is. or at least it should be. so fell free to come back if you
think you have some perf issue.

gael

On Tue, Jun 22, 2010 at 1:17 AM, Manoj Rajagopalan <rmanoj@xxxxxxxxx> wrote:
> 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/