New user self-registration is disabled due to spam. Please email eigen-core-team @ if you need an account.
Before reporting a bug, please make sure that your Eigen version is up-to-date!
Bug 983 - Memory align problem
Summary: Memory align problem
Alias: None
Product: Eigen
Classification: Unclassified
Component: Core - general (show other bugs)
Version: unspecified
Hardware: x86 - 32-bit Windows
: Normal Compilation Problem
Assignee: Nobody
Depends on:
Reported: 2015-03-24 13:21 UTC by MailMr_S
Modified: 2015-03-28 12:41 UTC (History)
3 users (show)


Description MailMr_S 2015-03-24 13:21:03 UTC
I try to compile with the current Eigen code 533ed5d85c9a (Avoid SVD: consider denormalized small numbers as zero when computing the rank of the matrix) but I get the following error:

d:\dev\eigen\include\eigen3\eigen\src/Geometry/Quaternion.h(165): error C2719: 'v': Formeller Parameter mit __declspec(align('8')) wird nicht ausgerichtet
          d:\dev\eigen\include\eigen3\eigen\src/Geometry/Quaternion.h(228): Siehe Verweis auf die Instanziierung der gerade kompilierten Klassen-template "Eigen::QuaternionBase<Eigen::Quaternion<double,0>>".
          D:\dev\rl-0.6.2\src\rl\mdl\Cylindrical.cpp(62): Siehe Verweis auf die Instanziierung der gerade kompilierten Klassen-template "Eigen::Quaternion<double,0>".

I could locate this problem to change set d8e950d48cb1 (Bug 973, improve AVX support by enabling vectorization of Vector4i-like types, and enforcing alignement of Vector4f/Vector2d-like types to preserve compatibility with SSE and future Eigen versions that will vectorize them with AVX enabled.) Before this change set it's working.
Comment 1 Christoph Hertzberg 2015-03-28 12:41:00 UTC
This should fix the issue:
(Vector3 was passed by value, not by reference)

Note You need to log in before you can comment on or make changes to this bug.