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

Sturla Molden sturla at molden.no
Tue Feb 1 14:41:26 EST 2011


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



More information about the NumPy-Discussion mailing list