[Numpy-discussion] A Cython apply_along_axis function

John Salvatier jsalvati at u.washington.edu
Wed Dec 1 21:09:27 EST 2010


On Wed, Dec 1, 2010 at 6:07 PM, Keith Goodman <kwgoodman at gmail.com> wrote:

> On Wed, Dec 1, 2010 at 5:53 PM, David <david at 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 latter?
> >
> > The only way that I know to do that systematically is iterator. There is
> > a relatively simple example in scipy/signal (lfilter.c.src).
> >
> > I wonder if it would be possible to add better support for numpy
> > iterators in cython...
>
> Thanks for the tip. I'm starting to think that for now I should just
> template both dtype and ndim.
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
I enthusiastically support better iterator support for cython
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20101201/6f468f9d/attachment.html>


More information about the NumPy-Discussion mailing list