| Bsoft 2.0.5 Bernard's software package

fft.h
Go to the documentation of this file.
1
10 #include "Complex.h"
11 #include "Vector3.h"
12
13 #include <fftw3.h>
14 typedef fftwf_complex fft_complex;
15 typedef int fft_direction;
16 typedef fftwf_plan fft_plan;
17
18 #define MAX_RANK 3 // Only up to 3D transforms
19
20 /* Function prototypes */
21 fft_plan fft_setup_plan(long x, long y, long z, fft_direction dir, int opt);
22 fft_plan fft_setup_plan(Vector3<long> size, fft_direction dir, int opt);
23 int fft_destroy_plan(fft_plan plan);
24 int fftw(fft_plan plan, Complex<float>* a);
Complex.h
Class for complex numbers.
fft_plan
fftwf_plan fft_plan
Definition: fft.h:16
fft_complex
fftwf_complex fft_complex
Definition: fft.h:14
fft_direction
int fft_direction
Definition: fft.h:15
Complex
Definition: Complex.h:23
Vector3< long >
fft_destroy_plan
int fft_destroy_plan(fft_plan plan)
Deallocates a plan for fast Fourier transforms.
Definition: fft.cpp:87
Vector3.h
Class for 3-value vectors.
fft_setup_plan
fft_plan fft_setup_plan(long x, long y, long z, fft_direction dir, int opt)
Sets up a plan for fast Fourier transforms.
Definition: fft.cpp:31
fftw
int fftw(fft_plan plan, Complex< float > *a)
Fast Fourier transforms a data array.
Definition: fft.cpp:106