[Numpy-discussion] numpy.interp running time

Timo Kluck tkluck@infty...
Mon Aug 1 15:33:28 CDT 2011

2011/8/1 Timo Kluck <tkluck@infty.nl>
> 2011/7/30 Eric Firing <efiring@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


More information about the NumPy-Discussion mailing list