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

[ Thread Index | Date Index | More 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:




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, without any padding? In other words, will ( + 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+