pushfftw_plan - push the last used fftw planner in memory
This function stores the last parameters of fftw in memory.
This can be useful to improve the time computation of fftw after multiple calls of fftw with different set of parameters (dimension, sign, ...).
freefftw_plan() //consecutives call with same parameters tic;fftw(rand(1e6 + 3,1));toc() // time 1 tic;fftw(rand(1e6 + 3,1));toc() // time 2 (< time 1) tic;fftw(rand(1e6 + 3,1));toc() // approx. same time as 2 //consecutives call with differents parameters tic;fftw(rand(1e6 + 37,1));toc() // time 3 tic;fftw(rand(1e6 + 3,1));toc() // approx. same time as 1 //push the last planner in memory pushfftw_plan() tic;fftw(rand(1e6 + 37,1));toc() // approx. same time as 3 tic;fftw(rand(1e6 + 37,1));toc() // time 4 (< time 3) tic;fftw(rand(1e6 + 3,1));toc() // approx. same time as 2 tic;fftw(rand(1e6 + 37,1));toc() // approx. same time as time 4 freefftw_plan()
fftw , fftw_flags , fftw_norm , fftw_inplace , freefftw_plan ,