Re: [Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2011-01-04 Thread Mark Wiebe
On Sat, Jan 1, 2011 at 11:23 AM, John Salvatier jsalv...@u.washington.eduwrote: This thread is a bit old, but since it's not possible to use the C-API is possible to accomplish this same thing with the Python API? I've committed Python exposure for nested iteration to the new_iterator branch.

Re: [Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2011-01-04 Thread John Salvatier
Wow, great! I'm excited to try this. I think your patch significantly increases the extendability of numpy. Is the C-API exposed currently? Can you use the API from Cython (meaning is the numpy.pxd file updated)? On Tue, Jan 4, 2011 at 12:04 PM, Mark Wiebe mwwi...@gmail.com wrote: On Sat,

Re: [Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2011-01-04 Thread Mark Wiebe
On Tue, Jan 4, 2011 at 12:15 PM, John Salvatier jsalv...@u.washington.eduwrote: Wow, great! I'm excited to try this. I think your patch significantly increases the extendability of numpy. Is the C-API exposed currently? Can you use the API from Cython (meaning is the numpy.pxd file updated)?

Re: [Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2011-01-04 Thread Mark Wiebe
Oh, and I'm not sure about Cython, since I've never looked into its details. I imagine Cython will want to short circuit some of the Python exposure code, since accessing the iterator values creates new array objects. -Mark On Tue, Jan 4, 2011 at 12:59 PM, Mark Wiebe mwwi...@gmail.com wrote:

Re: [Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2011-01-04 Thread John Salvatier
Cython just has interfaces to the C-API, I think. On Tue, Jan 4, 2011 at 1:01 PM, Mark Wiebe mwwi...@gmail.com wrote: Oh, and I'm not sure about Cython, since I've never looked into its details. I imagine Cython will want to short circuit some of the Python exposure code, since accessing the

Re: [Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2011-01-01 Thread John Salvatier
This thread is a bit old, but since it's not possible to use the C-API is possible to accomplish this same thing with the Python API? On Tue, Dec 21, 2010 at 5:12 PM, Mark Wiebe mwwi...@gmail.com wrote: On Mon, Dec 20, 2010 at 1:42 PM, John Salvatier jsalv...@u.washington.edu wrote: A while

Re: [Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2010-12-22 Thread John Salvatier
This now makes sense to me, and I think it should work :D. This is all very cool. This is going to do big things for cython and numpy. Some hopefully constructive criticism: When first reading through the API description, the way oa_ndim and oa_axes work is not clear. I think your description

Re: [Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2010-12-22 Thread Mark Wiebe
On Wed, Dec 22, 2010 at 12:44 AM, John Salvatier jsalv...@u.washington.eduwrote: This now makes sense to me, and I think it should work :D. This is all very cool. This is going to do big things for cython and numpy. Some hopefully constructive criticism: When first reading through the API

Re: [Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2010-12-21 Thread Mark Wiebe
On Mon, Dec 20, 2010 at 1:42 PM, John Salvatier jsalv...@u.washington.eduwrote: A while ago, I asked a whether it was possible to multi-iterate over several ndarrays but exclude a certain axis( http://www.mail-archive.com/numpy-discussion@scipy.org/msg29204.html), sort of a combination of

[Numpy-discussion] Giving numpy the ability to multi-iterate excluding an axis

2010-12-20 Thread John Salvatier
A while ago, I asked a whether it was possible to multi-iterate over several ndarrays but exclude a certain axis( http://www.mail-archive.com/numpy-discussion@scipy.org/msg29204.html), sort of a combination of PyArray_IterAllButAxis and PyArray_MultiIterNew. My goal was to allow creation of