[Numpy-discussion] A faster median (Wirth's method)
Sturla Molden
sturla at molden.no
Tue Sep 1 17:37:54 EDT 2009
Dag Sverre Seljebotn skrev:
>
> Nitpick: This will fail on large arrays. I guess numpy.npy_intp is the
> right type to use in this case?
>
By the way, here is a more polished version, does it look ok?
http://projects.scipy.org/numpy/attachment/ticket/1213/generate_qselect.py
http://projects.scipy.org/numpy/attachment/ticket/1213/quickselect.pyx
Cython needs something like Java's generics by the way :-)
Regards,
Sturla Molden
More information about the NumPy-Discussion
mailing list