diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-05 21:13:36 -0300 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2025-04-05 21:13:36 -0300 |
commit | c244e44630e611e038d1f18992bea400f7d7b6cb (patch) | |
tree | 7b1d6cf1d865579aa851c9a055e3d48581fdec8d /fourier.hpp | |
parent | f65b97b96ec4111807222fd95057813a454a2bea (diff) | |
download | code-c244e44630e611e038d1f18992bea400f7d7b6cb.tar.gz code-c244e44630e611e038d1f18992bea400f7d7b6cb.tar.bz2 code-c244e44630e611e038d1f18992bea400f7d7b6cb.zip |
Switched to fftw allocators to ensure correct alignment for SIMD instructions
Diffstat (limited to 'fourier.hpp')
-rw-r--r-- | fourier.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fourier.hpp b/fourier.hpp index 1ebb7bc..9451f69 100644 --- a/fourier.hpp +++ b/fourier.hpp @@ -19,10 +19,11 @@ Real ddf(Real λ, unsigned p, unsigned s, Real q); class FourierTransform { private: - std::vector<Real> a; - std::vector<Complex> â; + Real* a; + Complex* â; fftw_plan plan_r2c; fftw_plan plan_c2r; + unsigned n; Real Δω; Real Δτ; public: |