[SciPy-user] FFT speed ?

Samuel GARCIA sgarcia at olfac.univ-lyon1.fr
Wed Feb 7 09:04:07 EST 2007


Yes I know this.
But 186888 186889 and 186890 are not power of 2 and the computation time
is very very different just for a difference of size of only one point.
What is the reason ?
And how to deal with that ? (I realy need to compute fft with a random
nomber of point)


Nils Wagner wrote:
> Samuel GARCIA wrote:
>   
>> Hello list,
>>
>> I have a problem with fft speed.
>> could someone try this :
>>
>> from scipy import *
>> import time
>>
>> a = rand((186888));t1=time.time();fft(a);t2=time.time();t2-t1
>>
>> # for me about 0.67791390419006348 s. on centrino 1.6GHz
>>
>> a = rand((186890));t1=time.time();fft(a);t2=time.time();t2-t1
>>
>> # for me about 1.622053861618042 s. on centrino 1.6GHz
>>
>> a = rand((186889));t1=time.time();fft(a);t2=time.time();t2-t1
>>
>> # the computation is infinit !!!! (no time to wait)
>>
>>
>> Question : why is there a problem specialy for that size (186889) of fft ?
>> It is not the only size with that problem.
>>
>>
>> Thank
>>
>> Sam
>>
>>
>>   
>>     
> What you can find with help (fft) is ...
>
> "This is most efficient for n a power of two"
>
> Nils
>
>
>  
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user at scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>   

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Samuel Garcia
Universite Claude Bernard LYON 1
CNRS - UMR5020, Laboratoire des Neurosciences et Systemes Sensoriels
50, avenue Tony Garnier
69366 LYON Cedex 07
FRANCE
Tél : 04 37 28 74 64
Fax : 04 37 28 76 01
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20070207/b543e3bd/attachment.html>


More information about the SciPy-User mailing list