[eigen] question on alignment

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


Hi,

I am new to Eigen and I have some hesitations on the alignment.

do we have to propagate the EIGEN_MAKE_ALIGNED_OPERATOR_NEW to every
class using a class containing an EIGEN class?

for example:

class Foo
{
  ...
  Eigen::Vector2d v;
  ...
public:
  EIGEN_MAKE_ALIGNED_OPERATOR_NEW
};


class A
{
  ...
  Foo v;
  ...
public:
  EIGEN_MAKE_ALIGNED_OPERATOR_NEW    <---- do I have to use it here?
};


additionally for this:

class AList
{
  ...
  std::vector<A,Eigen::aligned_allocator<A> > mylist
  ...

public:
  EIGEN_MAKE_ALIGNED_OPERATOR_NEW    <---- do I have to use it here?
}

Thank you,

Best regards,
Sylvain



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