10 fftw_plan plan_fft[nmax] ;
14 fftw_plan back_fft(
int n, Tbl*& pg) {
16 for (
int i=0; ((i<nworked) && (index<0)); i++)
17 if (nb_fft[i] == n) index = i ;
22 cout <<
"back_fft: " << endl ;
23 cout <<
"too many plans!" << endl ;
26 tab_tab[index] =
new Tbl(n) ;
27 Tbl& tab = (*tab_tab[index]) ;
30 fftw_plan_r2r_1d(n, tab.t, tab.t, FFTW_HC2R, FFTW_ESTIMATE) ;
34 assert((index>=0)&&(index<nmax)) ;
36 return plan_fft[index] ;