set method for fft planner algorithm selection
[a,[S]]=fftw_flags(flag)
: :a an integer. The planner code. See below. : :S a character string. The planner name. :
This function enables the selection of the algorithm used to determine the fftw planner algorithm. The planner is used to determine an efficient way to compute the fft.
Warning: the default value “FFTW_MEASURE” gives quite efficient plans. Try to change it only if the fft efficiency is really important and you have a lot of simmilar calls to do.
Accepted entries are :
Remark : when using FFTW_MEASURE/FFTW_PATIENT/FFTW_EXHAUSTIVE you must call two times fftw. (first call for initialisation, second and others calls for computation)
A=`rand`_(1,2^9+2^15+2^17);
`fftw_forget_wisdom`_();
fftw_flags("FFTW_ESTIMATE");
`timer`_();y=`fft`_(A);`timer`_()//first call determines the plan
`timer`_();y=`fft`_(A);`timer`_() //subsequent similar calls
fftw_flags("FFTW_MEASURE");
`fftw_forget_wisdom`_();
`timer`_();y=`fft`_(A);`timer`_()//first call determines the plan
`timer`_();y=`fft`_(A);`timer`_() //subsequent similar calls