patvarilly/scipy — pull request #1 by sturlamolden (2012-07-30 19:26:02+00:00)
Title: cKDTree improvements

A small modification to cKDTree.query. On Win64, the returned index array has dtype=int if indices does not overflow a C long. Thus the behavior is consistent with cKDTree in SciPy master on small data sets.

@cython.cdivision(True) is only needed where C instead of Python integer division or modulus are required. (Mainly as a speed improvement, though they are slightly different.) It's not needed for float division. I removed a couple we don't need.

Sturla