Registered Member
|
Hallo,
first of all I want to congratulate you for the work you have been doing. I have been using it a lot for my PhD. I have a long std::vector<double> and i want to treat some parts of it as eigen classes. In particular I have this structure for my vector q: stdVec = [ vector3d | quterniond | vector3d | vector3d] (13 elements in total) I was trying to use eigen maps to avoid copying and increase performance in my code. I do:
there seems to be no problems when dealing with the two vectors but if I do
I get a segfault. I have also tried a simpler thing like this:
and it works fine while this:
causes a segfault. I guess this has something to do with the problems described here http://eigen.tuxfamily.org/dox/TopicStlContainers.html but this seems to be a "complementary" problem: I don't want vectors of eigen::quaterniond but a quaternionMapd using a vector. the strange thing is that the other vectors don't seem to create problems. Thanks for your help. |
Moderator
|
Works for me. Which Eigen version are you using? Perhaps you should upgrade to 3.1.3.
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]