Re: [eigen] Wish list ? iterator protocol? |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/eigen Archives
]
- To: eigen@xxxxxxxxxxxxxxxxxxx
- Subject: Re: [eigen] Wish list ? iterator protocol?
- From: Gael Guennebaud <gael.guennebaud@xxxxxxxxx>
- Date: Sat, 28 May 2011 09:56:58 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=cEsqxpWCBMpnQJOJjwmW+gvv/sQCa8SY7bsTz8vM1gA=; b=SBixfUO8xGAWMixlqvI47/uW56FDKXQjJPmviULAHMjHlSisd3j7Sv7NOxn30xBCoZ GW3sLrjTWuPtrGg3rdau9MxiNCITGuxQpzRdonCWfveXw0TOWMpzxaVVAIikI3NmXXOo mkT3kTQk4Jg9OgHlscSEElbsip5jmXKd9r2XA=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Qghf/3MNBI4/3Xu7Sqv6KDU2fAQQTZNNDurg70MFHZ6liXXI0I5t6MjGL8w7GqNwT1 S2sinCUEhKG0Gi60zm++X8+4W3D1+QhB4iXBv8WJoEeZYW7I9cXEyFDIGjDa8+Or9RIr GJeR++JRez7GhF9UlUDySUtwRFispFLnpq+a0=
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.
>
>
>