Re: [eigen] aligned question

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



Hi,

you should be safe, EIGEN_MAKE_ALIGNED_NEW will ensure that *arr is properly aligned.

gael

On Wed, Jul 15, 2015 at 11:00 AM, Gabriel <gnuetzi@xxxxxxxxx> wrote:


If I have

class A{
    EIGEN_MAKE_ALIGNED_NEW
    Eigen::Vector4f a;
}

and I instantiate this as

A * arr = new A[100];


is there any alignment issue or does EIGEN_MAKE_ALIGNED_NEW take care of this :-)?

Thanks a lot?





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