[Numpy-discussion] Vectorize or rewrite function to work with array inputs?

John Salvatier jsalvati at u.washington.edu
Tue Feb 1 14:50:53 EST 2011

I am curious: why you recommend against this? Using the C-API through cython
seems more attractive than using the Cython-specific numpy features since
they need a specific number of dimensions (and I don't think they broadcast)
and don't seem that much easier. Are there hidden disadvantages to using the
C-API? Have I misunderstood something?


On Tue, Feb 1, 2011 at 11:41 AM, Sturla Molden <sturla at molden.no> wrote:

> Den 01.02.2011 20:30, skrev John Salvatier:
> > Have you thought about using cython to work with the numpy C-API
> > (http://wiki.cython.org/tutorials/numpy#UsingtheNumpyCAPI)? This will
> > be fast, simple (you can mix and match Python and Cython).
> Never do this. Cython has NumPy array support now:
> http://docs.cython.org/src/tutorial/numpy.html
> Sturla
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110201/e937f585/attachment.html>

More information about the NumPy-Discussion mailing list