Registered Member
|
Hi!
This is a part of my code:
I read abt that problem in tutorial, but... i don't understand:( |
Moderator
|
Point3D stores a Matrix2d which must be aligned to exploit SSE. Consequently, as said in the tutorial, this class must have overloaded operator new (we have a macro for that), and any STL container storing Point3D objects should use our aligned_allocator. Consequently, the same apply to all classes storing a Point3D.
If you don't want such trouble, use a Matrix<double,2,2,Eigen::DontAlign> instead of Matrix2d for the member of Point3D. |
Registered Member
|
Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]