Registered Member
|
Is there someplace in the documentation that explains when Eigen uses row major or column major formats? Is there a way to tell at runtime where a matrix is in one format or the other? Thanks!
|
Moderator
|
The default is column major and you cannot select one storage format at runtime. This must be specified at compile time via the 4th template argument of Matrix, eg:
Note that if you write a template function taking an Eigen matrix or expression, then you can query the storage format like this:
Last edited by bjacob on Sat May 16, 2009 12:36 pm, edited 1 time in total.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]