comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Searching for fast linear interpolation routine
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Searching for fast linear interpolation routine [message #8553] Fri, 04 April 1997 00:00 Go to previous message
Roger J. Dejus is currently offline  Roger J. Dejus
Messages: 3
Registered: April 1997
Junior Member
Did someone write a fast linear interpolation routine for irregular one
dimensional arrays (monotonically ascending or descending abscissas)
similar in functionality to the INTERPOL.PRO routine from RSI?

The enclosed test code takes about 1.6 s on a DEC alpha (old = model
3000/400). In reality, the arrays I'm using are of course much larger
and the bottleneck is really in INTERPOL.PRO.

Regards, Roger Dejus. (dejus@aps.anl.gov).


PRO test6,x,y,xi,yi

x = findgen(1001)/1000.0*2.0*!pi
y = sin(x)
xi = findgen(10001)/10000.0*2.0*!pi

t = systime(1)
yi = interpol(y,x,xi)
print,systime(1)-t

END ; test6
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Save money!!!
Next Topic: Saving array into column fomratted text file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:34:52 PDT 2025

Total time taken to generate the page: 0.00472 seconds