nipy/dipy — pull request #109 by matthew-brett (2012-12-14 09:08:26+00:00)
Title: Faster einsum

I wrote a Cython custom implementation of the calculation for which we were using einsum.

It's a little faster too, see:

>>> import dipy.reconst as dire
>>> dire.bench()

BUT - it does mean we need Cython 0.17 at build time. This is not a problem for a released version (because we ship the C files) - but it is for development (git) versions.

I like Cython 0.17 because of memoryviews - as here, they can be much faster than ndarrays in the old Cython syntax, and I find them more readable.