Re: [eigen] Eigen::Matrix and cv::Mat conversions

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


Eigen defaults to column-major.

Curious, is there a reason for this? When writing loops, most C and C++ programmers have ingrained the "columns as inner loop" philosophy for efficiency. Now, presumably Eigen matrices are not intended to be manually looped over too often, but it's still a curious choice.

All I can think of is that it's to simplify interactions with LAPACK implementations.

If you want row-major with Eigen you can do:
typedef Matrix<float,2,2,RowMajor> MyRowMajorMatrixType;

That's what I need, thanks.





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