Re: [eigen] Quaternion initialization from Block/segment (Eigen 3 beta 1) |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
Gael Guennebaud wrote:
And indeed this copy the data to a new array. In Eigen3 you can map external memory as a Quaternion without any copy using Map: Map<Quaterniond> q(myvector.segment(3,4).data()); or Map<Quaterniond> q(&myvector(3));
sry did't read this before sending my mail ... -- ---------------------------------------------- Dipl.-Inf. Christoph Hertzberg Cartesium 0.051 Universität Bremen Enrique-Schmidt-Straße 5 28359 Bremen Tel: (+49) 421-218-64252 ----------------------------------------------
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |