[Numpy-discussion] New functions.

David david at silveregg.co.jp
Tue May 31 21:33:24 EDT 2011


On 06/01/2011 10:08 AM, Charles R Harris wrote:
> Hi All,
>
> I've been contemplating new functions that could be added to numpy and
> thought I'd run them by folks to see if there is any interest.
>
> 1) Modified sort/argsort functions that return the maximum k values.
>      This is easy to do with heapsort and almost as easy with mergesort.
>
> 2) Ufunc fadd (nanadd?) Treats nan as zero in addition. Should make a
> faster version of nansum possible.
>
> 3) Fast medians.

+1 for fast median as well, and more generally fast "linear" (O(kN)) 
order statistics would be nice.

cheers,

David



More information about the NumPy-Discussion mailing list