Re: [eigen] Internal data storage model of eigen matrices

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


yes, you are right.

then the order depends on the column major vs row major. The default is column major but you can declare row major objects:

Matrix<double,Dynamic,Dynamic,RowMajor>

cheers,

gael

On Thu, Jun 3, 2010 at 9:19 AM, Sidney Cadot <sidney.cadot@xxxxxxxxx> wrote:

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/