Re: [eigen] A not so simple product |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Hi
Okay, I'm trying to figure the most efficient way to vectorize this product:
MatrixXf m(N,3);
VectorXf rho(N);
VectorXf w(M);
What I would like to do: The i'th row of m is suppposed to get multiplied by 1 / (rho(i)*w(i))
I've not yet found a way which actually works as a short eigen-_expression_... is there any or do I have to go back to the old rusty for loop? :)
Thanks
Benjamin
---
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |