This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Help with eigen and boost-python

Tags: None
(comma "," separated)
nabraham
Registered Member
Posts
2
Karma
0

Help with eigen and boost-python

Wed Jan 21, 2015 11:34 pm
I need some help with wrapping an Eigen::Vector2d to python. To make it reproduceable I have created a small test: https://github.com/looooo/eigentest
The problem should be described here http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html and this is the error message:
python: /usr/local/include/eigen3/Eigen/src/Core/DenseStorage.h:86: Eigen::internal::plain_array<T, Size, MatrixOrArrayOptions, 16>::plain_array() [with T = double; int Size = 2; int MatrixOrArrayOptions = 0]: Assertion `(reinterpret_cast<size_t>(eigen_unaligned_array_assert_workaround_gcc47(array)) & 0xf) == 0 && "this assertion is explained here: " "http://eigen.tuxfamily.org/dox-devel/group__TopicUnalignedArrayAssert.html" " **** READ THIS WEB PAGE !!! ****"' failed.


The problem occurs only on 2d vectors. The same wrapper methodes on a 3d vector is working.
Maybe someone has an idea how to solve this problem.

Many thanks in advance
nabraham
Registered Member
Posts
2
Karma
0

Re: Help with eigen and boost-python

Thu Jan 22, 2015 10:53 am
Found a solution in the EIgen Documentation : http://eigen.tuxfamily.org/dox/group__TopicStructHavingEigenMembers.html
I now use this matrixtype as vector2d: Eigen::Matrix<double,2,1,Eigen::DontAlign>


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]