[eigen] Internal data storage model of eigen matrices

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

Hi all,

I have a simple questions concerning the internal data storage of matrices in Eigen 2, because I need to interact with an external library (in particular, fftw):

Is it guaranteed that the scalar base data of a matrix m is stored in consecutive memory locations, starting at m.data(), without any padding? In other words, will (m.data() + i) point to a matrix element for all i such that (0 <= i < m.size()) ?

Best regards, Sidney

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