Re: [Numpy-discussion] MapIter api

2013-04-23 Thread Frédéric Bastien
Hi, this is currently used in Theano! In fact, it is a John S. that implemented it in NumPy to allow fast gradient of the advanced indexing in Theano. It allow code like: matrix1[vector1, vector2] += matrix2 where there is duplicate indices in the vector In looking at the code, I saw it use at

Re: [Numpy-discussion] MapIter api

2013-04-23 Thread Sebastian Berg
On Tue, 2013-04-23 at 17:08 -0400, Frédéric Bastien wrote: Hi, this is currently used in Theano! In fact, it is a John S. that implemented it in NumPy to allow fast gradient of the advanced indexing in Theano. It allow code like: matrix1[vector1, vector2] += matrix2 Yes, I had missed

Re: [Numpy-discussion] MapIter api

2013-04-23 Thread Charles R Harris
On Tue, Apr 23, 2013 at 4:06 PM, Sebastian Berg sebast...@sipsolutions.netwrote: On Tue, 2013-04-23 at 17:08 -0400, Frédéric Bastien wrote: Hi, this is currently used in Theano! In fact, it is a John S. that implemented it in NumPy to allow fast gradient of the advanced indexing in

Re: [Numpy-discussion] MapIter api

2013-04-16 Thread Sebastian Berg
On Mon, 2013-04-15 at 13:36 -0600, Charles R Harris wrote: On Mon, Apr 15, 2013 at 1:27 PM, Sebastian Berg sebast...@sipsolutions.net wrote: On Mon, 2013-04-15 at 11:16 -0600, Charles R Harris wrote: On Mon, Apr 15, 2013 at 10:29 AM, Sebastian Berg

Re: [Numpy-discussion] MapIter api

2013-04-16 Thread Nathaniel Smith
On Mon, Apr 15, 2013 at 5:29 PM, Sebastian Berg sebast...@sipsolutions.net wrote: Hey, the MapIter API has only been made public in master right? So it is no problem at all to change at least the mapiter struct, right? I got annoyed at all those special cases that make things difficult to

[Numpy-discussion] MapIter api

2013-04-15 Thread Sebastian Berg
Hey, the MapIter API has only been made public in master right? So it is no problem at all to change at least the mapiter struct, right? I got annoyed at all those special cases that make things difficult to get an idea where to put i.e. to fix the boolean array-like stuff. So actually started

Re: [Numpy-discussion] MapIter api

2013-04-15 Thread Charles R Harris
On Mon, Apr 15, 2013 at 10:29 AM, Sebastian Berg sebast...@sipsolutions.net wrote: Hey, the MapIter API has only been made public in master right? So it is no problem at all to change at least the mapiter struct, right? I got annoyed at all those special cases that make things difficult to

Re: [Numpy-discussion] MapIter api

2013-04-15 Thread Sebastian Berg
On Mon, 2013-04-15 at 11:16 -0600, Charles R Harris wrote: On Mon, Apr 15, 2013 at 10:29 AM, Sebastian Berg sebast...@sipsolutions.net wrote: Hey, the MapIter API has only been made public in master right? So it is no problem at all to change at

Re: [Numpy-discussion] MapIter api

2013-04-15 Thread Charles R Harris
On Mon, Apr 15, 2013 at 1:27 PM, Sebastian Berg sebast...@sipsolutions.netwrote: On Mon, 2013-04-15 at 11:16 -0600, Charles R Harris wrote: On Mon, Apr 15, 2013 at 10:29 AM, Sebastian Berg sebast...@sipsolutions.net wrote: Hey, the MapIter API has only been made