summaryrefslogtreecommitdiff
path: root/fourier.hpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-18 20:04:58 -0300
committerJaron Kent-Dobias <jaron@kent-dobias.com>2025-04-18 20:04:58 -0300
commit717558730554dbb470fbda0700f14fc43595063d (patch)
tree29b21642db8f2c1c81721d632a1e9d8a796bec5d /fourier.hpp
parent7bd8f97aea0545c3d0da438cde3fd3d7ba4083b4 (diff)
downloadcode-717558730554dbb470fbda0700f14fc43595063d.tar.gz
code-717558730554dbb470fbda0700f14fc43595063d.tar.bz2
code-717558730554dbb470fbda0700f14fc43595063d.zip
Got the log-fourier method working, but integrator is not working correctly
Diffstat (limited to 'fourier.hpp')
-rw-r--r--fourier.hpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/fourier.hpp b/fourier.hpp
index 22a57e7..1708667 100644
--- a/fourier.hpp
+++ b/fourier.hpp
@@ -44,15 +44,14 @@ private:
fftw_plan a_to_â;
fftw_plan â_to_a;
unsigned N;
+ unsigned pad;
Real k;
Real Δτ;
- Real Δω;
- Real Δs;
Real τₛ;
Real ωₛ;
Real sₛ;
public:
- LogarithmicFourierTransform(unsigned N, Real k, Real Δω, Real Δτ, Real Δs);
+ LogarithmicFourierTransform(unsigned N, Real k, Real Δτ, unsigned pad = 4);
~LogarithmicFourierTransform();
Real τ(unsigned n) const;
Real ω(unsigned n) const;
@@ -60,10 +59,7 @@ public:
Real ν(unsigned n) const;
Real s(unsigned n) const;
std::vector<Complex> fourier(const std::vector<Real>& c, bool symmetric);
- std::vector<Complex> fourier();
std::vector<Real> inverse(const std::vector<Complex>& ĉ);
- void writeToA(unsigned i, Real ai);
- std::vector<Real> convolve(const std::vector<Real>& Γh, const std::vector<Real>& R);
};
Complex gamma(Complex z);