http://docs.cython.org/src/tutorial/numpy.html
and/or
http://conference.scipy.org/proceedings/SciPy2009/paper_2/fu...
Some types of array addressing will take the slower---but still correct---invocation path through Python, but the common form is compiled to direct (albeit strided) array access.
http://docs.cython.org/src/tutorial/numpy.html
and/or
http://conference.scipy.org/proceedings/SciPy2009/paper_2/fu...
Some types of array addressing will take the slower---but still correct---invocation path through Python, but the common form is compiled to direct (albeit strided) array access.