[eigen] Is post-multiplication by diagonal matrix optimized? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] Is post-multiplication by diagonal matrix optimized?
- From: Manoj Rajagopalan <rmanoj@xxxxxxxxx>
- Date: Mon, 21 Jun 2010 19:17:21 -0400
- Organization: EECS Dept., University of Michigan, Ann Arbor, MI, USA
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