[Numpy-discussion] Find the N maximum values and corresponding indexes in an array
Wed Dec 2 20:19:25 CST 2009
On 2-Dec-09, at 8:32 PM, Anne Archibald wrote:
> 2009/12/2 David Warde-Farley <email@example.com>:
>> 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.
> How is Cython support for generic types these days? One wouldn't want
> to have to write separate versions for each dtype...
Much the same, unfortunately. Dag suggested generating Cython code
with a Cheetah template the last time I brought it up.
More information about the NumPy-Discussion