[Numpy-discussion] numpy.interp running time

Timo Kluck tkluck at infty.nl
Mon Aug 1 16:33:28 EDT 2011


2011/8/1 Timo Kluck <tkluck at infty.nl>
> 2011/7/30 Eric Firing <efiring at hawaii.edu>
>> Maybe the thing to do is to pre-calculate if len(xp) <= len(x), or some
>> such guess as to which method would be more efficient.
>>
> What you're suggesting is reasonable. The cutoff at len(xp) <= len(x) can distinguish between the 'refinement' case
> and the 'just one value' case. I'll implement it for a start.

I just submitted a patch at
http://projects.scipy.org/numpy/ticket/1920 . It implements Eric's
suggestion. Please review, I'll be happy to adapt it to any of your
feedback.

Timo



More information about the NumPy-Discussion mailing list