Hacker Newsnew | comments | show | ask | jobs | submit login

I'm not sure of your needs, but there's now reasonable support for efficient interaction with numpy arrays; see, eg

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.




Thanks, that looks great! I used to do stuff like that with weave. It would be interesting to see the speed comparison for weave and cython.

-----




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: