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

Home » Public Forums » archive » Re: Different FFT times for same array size ?
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: Different FFT times for same array size ? [message #45269] Wed, 24 August 2005 12:14 Go to previous message
Steve Eddins is currently offline  Steve Eddins
Messages: 9
Registered: July 2001
Junior Member
"R.G. Stockwell" <no@email.please> wrote:
> "Jan Cami" <jcami@mail.arc.nasa.gov> wrote:
>> A good look at the different input chunks revealed the problem :
>> there's a few NaN values in there which apparently slow it down
>> dramatically. Problem solved !
>
> interesting! I wasn't aware of that time hit with nans.

Yes. NaNs tend to slow down floating-point computations substantially. This
effect isn't specific to IDL. And with FFTs, every output depends
mathematically on every input, so even a single NaN in the input results in
every output value being NaN. This is pretty slow way to create an all-NaN
thing, so the original poster might consider treating inputs with NaNs as a
special case and handling them differently.

Steve
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CURSOR problems
Next Topic: Re: Help needed on calling an IDL procedure from the Linux command line

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

Current Time: Wed Oct 08 16:07:34 PDT 2025

Total time taken to generate the page: 0.00192 seconds