A note should be added to the alignment notes regarding use of allocate_shared. One needs to use allocate_shared with the eigen aligned allocator when making shared_ptr objects. Use of make_shared may result in alignment errors similar to not using the aligned new allocator.
Similar issues can arise with boost::bind. We also have notes about alignment on lots of different places, maybe we should join them to one single place and reference from everywhere to that. http://eigen.tuxfamily.org/index.php?title=Pit_Falls#Alignment_Issues_.28runtime_assertion.29 http://eigen.tuxfamily.org/dox-devel/TopicUnalignedArrayAssert.html Partially, links to non-existing sites exist: http://eigen.tuxfamily.org/dox/TopicUnalignedArrayAssert.html http://eigen.tuxfamily.org/dox/UnalignedArrayAssert.html These should be forwarded to an existing page (Maybe backporting bug 804 to 3.2 does the trick)
https://bitbucket.org/eigen/eigen/commits/1a730ab9c330/ https://bitbucket.org/eigen/eigen/commits/5e27de3082e8/ (3.2) Summary: Bug 795: mention allocate_shared as a candidate for aligned_allocator. https://bitbucket.org/eigen/eigen/commits/f4b60905c141/ https://bitbucket.org/eigen/eigen/commits/33f2a9685d38/ (3.2) Summary: Import wiki's paragraph: "I disabled vectorization, but I'm still getting annoyed about alignment issues" I've also fixed the broken links.
-- GitLab Migration Automatic Message -- This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/795.