[eigen] question on alignment |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: [eigen] question on alignment
- From: Sylvain Pointeau <sylvain.pointeau@xxxxxxxxx>
- Date: Wed, 10 Oct 2012 10:32:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=N4zYoepNH7YfRzPeL3QjLpVVm5x8jxuMJdKpsR4q7yY=; b=kR5XLygr3lYSDQ9DTv90JRfB5MV99d+nFRX7/wqbl6TU+6XjrViFD6K1NxfQDl0QOi bIWhZMQiFVOoIOlFYCq7ceEbE0/917Ri/KsEqmiZCAVzcV9eDplBMfyZBJylgGSVUIay fcCjtC3FbjHt5S1zbxTYJGPd2lRHLVIPTUkwNUv9eRFfk+6nlWp98g9GNTsZN+REqtM9 wzsOrE9a9f4nOimHusZcv1xB35gX2p6/YtJuEiyDBrvYvuhpLAn+N2IpQWYIj22LHsBT 8F0s3Gxq3Whgau7ZoHfUXjp81Hk2LUP8Ev8g2WoXqOyR4THVUumeqpLnkVWs75hzAgQk 3SHw==
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