Re: [eigen] Std Vector again |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Std Vector again
- From: Benoit Jacob <jacob.benoit.1@xxxxxxxxx>
- Date: Fri, 26 Jun 2009 19:37:12 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=7Uktbi6GKtYCPp2NeS66bQUg4DT9qMgqpnWY/WMKeug=; b=VV9dhjzBXDBGllp7VFa8/xewOZfq5w5JFz/s/uS+dxyaCMX8cYFSeIb0RozISKj18Q EdodmZmaKGgcEBXWFltJc/l9UjHvP24NzRYOgoC8xghJl6tlEP8+9c02WsfoZDQnel3m EGO+OM/ERL3osdz5hvlWeTHYLwOJx54OGZGvo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ChnHMkZzi/Ncvx8C3Md85ssEglV5cg8f5xkfE+zev0Ozi+ARSfgczwel85ufq/uv44 4sOj48OjnjXgUbHMUMLMhHdC++nhCRRRidC7i2O/8u5rYzGvzE7Zq2rZiNkdMzfNdHZm FHaO9WS4/PXWlQ2c7atNsp6obJaoOdz4Hj5YA=
2009/6/26 Benoit Jacob <jacob.benoit.1@xxxxxxxxx>:
> What you want here is EIGEN_DONT_ALIGN but this option is only
> available in the development version.
>
> In Eigen 2.0.3, to disable alignment, you'll have to edit
> Eigen/src/Core/util/Macros.h and at line 44 replace
>
> #if !defined(__GNUC__) || defined(__i386__) || defined(__x86_64__) ||
> defined(__ppc__) || defined(__ia64__)
>
> by
>
> #if 0
And by the way, you can control that on a per-matrix basis by using e.g.
Eigen::Matrix<float,4,1,Eigen::DontAlign>
instead of
Eigen::Vector4f
Cheers,
Benoit