Re: [eigen] A vector indexed by another vector |

[ Thread Index | Date Index | More lists.tuxfamily.org/eigen Archives ]

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] A vector indexed by another vector*From*: Matthieu Brucher <matthieu.brucher@xxxxxxxxx>*Date*: Fri, 24 Aug 2012 16:31:18 +0200*Dkim-signature*: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=M87LRO8rHV+nkswrTcnNsE/xUIMknMLeeOWShXkReaE=; b=0WTRfJny0MpnTRGipFjmGFd7YgcZzGQ6FIDT3XelgwSiBc3Dz1qo6uwcLOfyONxpWS yOGLa1EbyvDrnUjIJAVMpQEilXuh5CiLLnCPh06VN52uJiS/PldUvGisFJ/Q2jt7ER7l bsdhnpUOM1ccO2oXZ6swniMtO0MaBAZWPIBpGg9P63RtUoPg1XehNYw0PSu+V/jQfwHg EY8mtDqM30iYjPraM46qkXH5txoGkAX+ZWWNI7APIjL38baCgYb2TAZtEBeyifWU4auk ItoyfHqbM/HUXYy4nqdNhBpKdugMnB0FK3Dno5F9twiPYpLO0DsC5/CJjgs/4qm/miG3 a0qg==

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

Matthieu

-- Information System Engineer, Ph.D.

Blog: http://matt..eifelle.com

LinkedIn: http://www.linkedin.com/in/matthieubrucher

Music band: http://liliejay.com/

**Follow-Ups**:**Re: [eigen] A vector indexed by another vector***From:*Christoph Hertzberg

**References**:**[eigen] A vector indexed by another vector***From:*Matthieu Brucher

**Re: [eigen] A vector indexed by another vector***From:*Christoph Hertzberg

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] A vector indexed by another vector** - Next by Date:
**Re: [eigen] A vector indexed by another vector** - Previous by thread:
**Re: [eigen] A vector indexed by another vector** - Next by thread:
**Re: [eigen] A vector indexed by another vector**

Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |