We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42d912 commit e6bf417Copy full SHA for e6bf417
cpp/lib/Transformer.cpp
@@ -5,12 +5,13 @@
5
#include "Transformer.hpp"
6
7
namespace ahr {
8
-void ahr::Transformer::init() {
+void Transformer::init() {
9
auto r = grid.rBufXY();
10
auto c = grid.cBufXY();
11
fftFwd = fftw::plan_r2c<2u>::dft(r.to_mdspan(), c.to_mdspan(), fftw::ESTIMATE);
12
fftBwd = fftw::plan_c2r<2u>::dft(c.to_mdspan(), r.to_mdspan(), fftw::ESTIMATE);
13
}
14
+
15
void Transformer::fft(Grid::View::R_XY in, Grid::View::C_XY out) const { fftFwd(in, out); }
16
17
void Transformer::bfft(Grid::View::C_XY in, Grid::View::R_XY out) const { fftBwd(in, out); }
0 commit comments