Registered Member
|
Hi,
I need to take a matrix as an output into MATLAB(I am writing a mex file). Does anyone know how to do it? I was trying to transform the matrix class into a regular C array so that I can output it, but can not figure out how to do it.... Thank you very much! |
Registered Member
|
Eigen matrix is stored continuously, the storage order is row-major or column-major, so you can directly use the pointer, &m(0,0)
|
Moderator
|
there is also the .data() method to get the address of the first entry.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]