7 #define WISDOM "fftw_stats.wis" 11 #define F2D_REAL_TRANSFORM 14 #define F2D_PLANQUAL FFTW_ESTIMATE 35 FILE* wisdom_file = fopen(
WISDOM,
"a+");
37 fftw_import_wisdom_from_file(wisdom_file);
45 FILE* wisdom_file = fopen(
WISDOM,
"w");
46 fftw_export_wisdom_to_file(wisdom_file);
48 std::cout <<
"fftw plan written to file " <<
WISDOM <<
"."<<std::endl;
55 #ifdef F2D_REAL_TRANSFORM 56 m_Plan2D = fftw_plan_dft_r2c_2d(ysize, xsize, f, (fftw_complex*)F,
58 m_Plan2Dinv = fftw_plan_dft_c2r_2d(ysize, xsize, (fftw_complex*)F, f,
61 m_Plan2D = fftw_plan_dft_2d(ysize, xsize,
62 (fftw_complex*)f, (fftw_complex*)F,
63 FFTW_FORWARD, FFTW_ESTIMATE);
65 (fftw_complex*)f, (fftw_complex*)F,
66 FFTW_BACKWARD, FFTW_ESTIMATE);
void initTransform(int xsize, int ysize, double *f, double *F)
static bool s_WisdomModified
static bool s_WisdomLoaded