[eigen] Eigen "views"

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


Hi guys,

We were wondering whether there was ever a discussion about implementing "views" into Eigen. Here's an example:

Eigen::Vector<dynamic, float> vector1, vector2;
vector1 = defineSomeDataSomehow ();
Eigen::Vector<dynamic, int> idx = defineSomeIndicesSomehow ();
vector2 = vector1 (idx);
assert (vector2.size () == idx.size ());


Basically addressing data without copies.

Thanks,
Radu.
--
Point Cloud Library (PCL) - http://pointclouds.org



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