Re: [eigen] Eigen "views" |

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

*To*: eigen@xxxxxxxxxxxxxxxxxxx*Subject*: Re: [eigen] Eigen "views"*From*: Christoph Hertzberg <chtz@xxxxxxxxxxxxxxxxxxxxxxxx>*Date*: Tue, 16 Aug 2011 15:07:30 +0200

On 16.08.2011 08:48, Gael Guennebaud wrote:

I confirm what Benoit said, this has yet to be implemented and this is probably the most wanted feature! API-wise, what about simply overloading operator(). For vectors: VectorXf v1, v2; VectorXi indices; v2 = v1(indices); And for matrices: MatrixXf m1, m2; VectorXi indices1, indices2; m2 = m1(indices1,indices2); m2 = m1(Eigen::All,indices2); m2 = m1(indices1,Eigen::All);

"m1(indices1)" would be forbidden for matrices. Maybe the constant "All" is too intrusive when someone do using namespace Eigen ??

Christoph -- ---------------------------------------------- Dipl.-Inf. Christoph Hertzberg Cartesium 0.051 Universität Bremen Enrique-Schmidt-Straße 5 28359 Bremen Tel: (+49) 421-218-64252 ----------------------------------------------

**Follow-Ups**:**Re: [eigen] Eigen "views"***From:*Christoph Hertzberg

**References**:**[eigen] Eigen "views"***From:*Radu B. Rusu

**Re: [eigen] Eigen "views"***From:*Benoit Jacob

**Re: [eigen] Eigen "views"***From:*Gael Guennebaud

**Messages sorted by:**[ date | thread ]- Prev by Date:
**Re: [eigen] Eigen "views"** - Next by Date:
**Re: [eigen] Eigen "views"** - Previous by thread:
**Re: [eigen] Eigen "views"** - Next by thread:
**Re: [eigen] Eigen "views"**

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