[Numpy-discussion] Vectorize or rewrite function to work with array inputs?
Tue Feb 1 13:50:53 CST 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 <firstname.lastname@example.org> 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:
> NumPy-Discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion