Re: [eigen] A vector indexed by another vector |
[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]
This has been requested several times, essentially this is directly what bug 329 wants to have:http://eigen.tuxfamily.org/bz/show_bug.cgi?id=329
There is a prototype implementation, I'm not sure how well it worked/works with the current Eigen version.
If, however, the offset array is a permutation, i.e. each index occurs exactly once, you should be able to solve it using:
http://eigen.tuxfamily.org/dox-devel/classEigen_1_1PermutationMatrix.html
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |