[Numpy-discussion] Find the N maximum values and corresponding indexes in an array

David Warde-Farley dwf@cs.toronto....
Wed Dec 2 19:30:45 CST 2009

On 2-Dec-09, at 8:09 PM, Neal Becker wrote:

> Not bad, although I wonder whether a partial sort could be faster.

Probably (if the array is large) but depending on n, not if it's in  
Python. Ideal problem for Cython, though.


More information about the NumPy-Discussion mailing list