diff options
Diffstat (limited to 'fourier.cpp')
-rw-r--r-- | fourier.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fourier.cpp b/fourier.cpp index 1bef4b9..0c22637 100644 --- a/fourier.cpp +++ b/fourier.cpp @@ -25,8 +25,10 @@ Real ddf(Real λ, unsigned p, unsigned s, Real q) { } FourierTransform::FourierTransform(unsigned n, Real Δω, Real Δτ, unsigned flags) : a(2 * n), â(n + 1), Δω(Δω), Δτ(Δτ) { + fftw_import_wisdom_from_filename("fftw.wisdom"); plan_r2c = fftw_plan_dft_r2c_1d(2 * n, a.data(), reinterpret_cast<fftw_complex*>(â.data()), flags); plan_c2r = fftw_plan_dft_c2r_1d(2 * n, reinterpret_cast<fftw_complex*>(â.data()), a.data(), flags); + fftw_export_wisdom_to_filename("fftw.wisdom"); } FourierTransform::~FourierTransform() { |