[eigen] Pass column by reference

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


Hi everyone, I was wondering if it is possible to do something like this:

void  putSomethingInVector( VectorXf &data ) { work with data and modify it; }

---------------------------------------------------------------------
MatrixXf  myMatrix(100,100);
putSomethingInVector( myMatrix.col(4) );
---------------------------------------------------------------------
I know it is not possible like that, but is there any way? or .col() returns a read-only reference? I was looking for something like colRef() but no luck

Thanks!
Carlos


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/