nipy/dipy — pull request #135 by matthew-brett (2013-02-08 23:37:41+00:00)
Title: Refactor local maxima

I was getting an error in local_maxima which I tracked down to the fact that numpy.take returns values of type ``intp``, whereas we were using ``long``. Change type to ``intp``, rewrite ``local_maxima`` using numpy for memory allocation, and make a benchmark to check we are not going too slow.