Re: [Numpy-discussion] A Cython apply_along_axis function

2010-12-10 Thread Keith Goodman
On Wed, Dec 1, 2010 at 6:07 PM, Keith Goodman kwgood...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:53 PM, David da...@silveregg.co.jp wrote: On 12/02/2010 04:47 AM, Keith Goodman wrote: It's hard to write Cython code that can handle all dtypes and arbitrary number of dimensions. The former is

Re: [Numpy-discussion] A Cython apply_along_axis function

2010-12-02 Thread Dag Sverre Seljebotn
On 12/02/2010 08:17 AM, Robert Bradshaw wrote: On Wed, Dec 1, 2010 at 6:09 PM, John Salvatier jsalv...@u.washington.edu wrote: On Wed, Dec 1, 2010 at 6:07 PM, Keith Goodmankwgood...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:53 PM, Davidda...@silveregg.co.jp wrote: On

[Numpy-discussion] A Cython apply_along_axis function

2010-12-01 Thread Keith Goodman
It's hard to write Cython code that can handle all dtypes and arbitrary number of dimensions. The former is typically dealt with using templates, but what do people do about the latter? I'm trying to take baby steps towards writing an apply_along_axis function that takes as input a cython

Re: [Numpy-discussion] A Cython apply_along_axis function

2010-12-01 Thread Dag Sverre Seljebotn
On 12/01/2010 08:47 PM, Keith Goodman wrote: It's hard to write Cython code that can handle all dtypes and arbitrary number of dimensions. The former is typically dealt with using templates, but what do people do about the latter? What you typically do is to use the C-level iterator API.

Re: [Numpy-discussion] A Cython apply_along_axis function

2010-12-01 Thread David
Hi Keith, On 12/02/2010 04:47 AM, Keith Goodman wrote: It's hard to write Cython code that can handle all dtypes and arbitrary number of dimensions. The former is typically dealt with using templates, but what do people do about the latter? The only way that I know to do that systematically

Re: [Numpy-discussion] A Cython apply_along_axis function

2010-12-01 Thread Keith Goodman
On Wed, Dec 1, 2010 at 5:53 PM, David da...@silveregg.co.jp wrote: On 12/02/2010 04:47 AM, Keith Goodman wrote: It's hard to write Cython code that can handle all dtypes and arbitrary number of dimensions. The former is typically dealt with using templates, but what do people do about the

Re: [Numpy-discussion] A Cython apply_along_axis function

2010-12-01 Thread John Salvatier
On Wed, Dec 1, 2010 at 6:07 PM, Keith Goodman kwgood...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:53 PM, David da...@silveregg.co.jp wrote: On 12/02/2010 04:47 AM, Keith Goodman wrote: It's hard to write Cython code that can handle all dtypes and arbitrary number of dimensions. The former

Re: [Numpy-discussion] A Cython apply_along_axis function

2010-12-01 Thread Robert Bradshaw
On Wed, Dec 1, 2010 at 6:09 PM, John Salvatier jsalv...@u.washington.edu wrote: On Wed, Dec 1, 2010 at 6:07 PM, Keith Goodman kwgood...@gmail.com wrote: On Wed, Dec 1, 2010 at 5:53 PM, David da...@silveregg.co.jp wrote: On 12/02/2010 04:47 AM, Keith Goodman wrote: It's hard to write Cython