Eigen Alignment Issues

Do the memory alignment issues with Eigen listed in the documentation persist with C ++ 11? It seems that C ++ 11 can already take care of the proper alignment of objects on the stack and on the heap, with alignas and std::allocator that supports alignment.

+7
c ++ 11 memory-alignment eigen eigen3
source share
1 answer

Yes, alignment problems are still present in C ++ 11. The alignas does not affect dynamic allocations, which can therefore lead to inconsistencies leading to statements made by Eigen.

You will need to continue to use the tools that Eigen provides for aligned selections, such as EIGEN_MAKE_ALIGNED_OPERATOR_NEW to select objects or Eigen::aligned_allocator<T> to align containers.

+3
source share

All Articles