20 #include <tensor/fftw.h>
22 #include "fftw_common.hpp"
27 fftw_inplace(CTensor& in,
int direction) {
28 fftw_complex *pin =
reinterpret_cast<fftw_complex*
> (in.begin());
29 do_fftw(pin, pin, in.dimensions(), direction);
33 fftw_inplace(CTensor& in, index dim,
int direction) {
34 assert(dim >= 0 && dim < in.rank());
35 fftw_complex *pin =
reinterpret_cast<fftw_complex*
> (in.begin());
36 do_fftw(pin, pin, dim, in.dimensions(), direction);
40 fftw_inplace(CTensor& in,
const Booleans& convert,
int direction) {
41 assert(convert.size() == in.rank());
42 fftw_complex *pin =
reinterpret_cast<fftw_complex*
> (in.begin());
43 do_fftw(pin, pin, convert, in.dimensions(), direction);