Re: [eigen] Wish list ? iterator protocol?

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


Hi,

actually, there is already a bug entry with a patch about this
feature: http://eigen.tuxfamily.org/bz/show_bug.cgi?id=231

In the meantime,  you can already do sort(A.data(), A.data().A.size())
though I admit it is not very elegant.

gael

On Wed, May 25, 2011 at 11:38 AM, Helmut Jarausch
<jarausch@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> are there any plans to support the iterator protocol directly?
> E.g. I'd like to write
>
> Array<int,256,1> A;
> ....
> sort(A.begin(),A.end());
>
> and in C++0X
>
> for(auto i : A ) cout << i << endl;
>
> If not,
>
> please add this to the wish list.
>
> Helmut.
>
>
>



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