summaryrefslogtreecommitdiff
path: root/fourier.hpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-05 21:13:36 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-05 21:13:36 -0300
commitc244e44630e611e038d1f18992bea400f7d7b6cb (patch)
tree7b1d6cf1d865579aa851c9a055e3d48581fdec8d /fourier.hpp
parentf65b97b96ec4111807222fd95057813a454a2bea (diff)
downloadcode-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.hpp5
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: