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

Home » Public Forums » archive » Re: FFT in 1 dimension
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: FFT in 1 dimension [message #28494 is a reply to message #28492] Fri, 07 December 2001 13:41 Go to previous messageGo to previous message
Wayne Landsman is currently offline  Wayne Landsman
Messages: 117
Registered: January 1997
Senior Member
hradilv.nospam@yahoo.com wrote:

> Here's what I came up with. Any comments?

I haven't examined your code in detail, but there is one line where the
speed of the program can be improved significantly:

Instead of writing

for i=0, nlines-1 do fdata[*,i] = fft(fdata[*,i],inverse=inverse)

write

for i=0, nlines-1 do fdata[0,i] = fft(fdata[*,i],inverse=inverse)

I'm actually not sure why this speed things up. I suppose by writing
fdata[0,i] on the left hand side, you've directly specified a starting
location to place the computation, but if you instead write fdata[*,i]
then IDL first extracts a temporary variable, assigns it to the value of
the computation, and then writes the temporary variable back into
fdata. Still, I would think that the compiler could recognize that
these two notations are equivalent.

--Wayne Landsman landsman@mpb.gsfc.nasa.gov
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: go button
Next Topic: fontpath in RH 7.2. PV-WAVE confused

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

Current Time: Wed Oct 08 13:21:09 PDT 2025

Total time taken to generate the page: 0.00411 seconds