Re: [eigen] A vector indexed by another vector

[ Thread Index | Date Index | More Archives ]

This has been requested several times, essentially this is directly what bug 329 wants to have:
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:

Thanks for the pointers. Unfortunately, I know that there are indices that will not be used. We do skip some values depending on a parameter at the beginning of the process, so perhaps duplicating data would be an acceptable solution (although a memory- and time-costly one, there are dozens of arrays that may or may not be needed).

Information System Engineer, Ph.D.
Music band:

Mail converted by MHonArc 2.6.19+