for example, I have:
Matrix<double,5,2,RowMajor> points;
Matrix<double,5,1> scalars;
What I want is equavalent to:
for(int i=0;i<5;++i){
points.row(i)*=scalars(i);
}
Are there oneliner that can achieve this?
I alreay tried rowwise and array but cannot get it right.