This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Colwise multiplication by a matrix

Tags: None
(comma "," separated)
xerion
Registered Member
Posts
20
Karma
0

Colwise multiplication by a matrix

Mon May 11, 2015 1:46 pm
Hi all,

Lets say I got a matrix
Code: Select all
Eigen::Matrix<double, 3, 4> P;

and another matrix
Code: Select all
Eigen::Matrix<double, 4, Eigen::dynamic> L;


Is there a way to achieve colwise multiplcation of P * L.col(i) in a more expressful way rather than a for loop ?

Thanks in advance.
aluaces
Registered Member
Posts
13
Karma
0
OS
Unless I'm mistaken,
Code: Select all
P*L.col(i) with i=0..L.cols()-1 == P*L


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]