[SciPy-Dev] Enhancements to scipy.spatial.cKDTree
Sturla Molden
sturla@molden...
Mon Jul 16 18:54:33 CDT 2012
Den 17.07.2012 01:21, skrev Patrick Varilly:
> Ok, I finished cleaning up the other functions that keep track of
> rectangle-rectangle min/max distances. The other enhancements with
> respect to int's and PyArray_DATA are also in (one case where it's not
> so easy to get rid of PyArray_DATA(arr) is when arr is only defined as
> an np.ndarray, as it must if it's a class member variable).
Then you need an ndarray in the local scope for unboxing, cf. maxes vs.
inner_maxes (it's the same issue).
Or just use PyArray_DATA, it's ok too.
Sturla
More information about the SciPy-Dev
mailing list