Registered Member
|
Quick question -- is Eigen::aligned_allocator always going to be necessary for stl vectors in future versions of Eigen? Or will users finally be able to write:
using namespace Eigen; using namespace std; vector<Matrix4d> v; thanks! Gabe |
Registered Member
|
With future c++ (e.g c++0x) versions it should not be required anymore.
Currently Eigen can do very little about it since its an STL issue of taking some elements by value where it were better to take them by reference. I think currently you have three options to prevent using aligned_allocator: 1) define EIGEN_DONT_ALIGN 2) specialize std::vector for Matrix4d and force it to use aligned_allocator 3) compile your code in 64bit (at least for me it works on VC.net) Regards, Hauke |
Registered Member
|
Win64 has 16 byte default alignment. But for example, Linux hasn't, even on x86-64.
Join us on Eigen's IRC channel: #eigen on irc.freenode.net
Have a serious interest in Eigen? Then join the mailing list! |
Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]