![]() |
Bsoft 2.1.4
Bernard's software package
|
General FFT for n-dimensional data. More...
Functions | |
fft_plan | fft_setup_plan (long x, long y, long z, fft_direction dir, int opt) |
Sets up a plan for fast Fourier transforms. More... | |
fft_plan | fft_setup_plan (Vector3< long > size, fft_direction dir, int opt) |
int | fft_destroy_plan (fft_plan plan) |
Deallocates a plan for fast Fourier transforms. More... | |
int | fftw (fft_plan plan, Complex< float > *a) |
Fast Fourier transforms a data array. More... | |
Variables | |
int | verbose |
General FFT for n-dimensional data.
Implementing the FFTW library
int fft_destroy_plan | ( | fft_plan | plan | ) |
Deallocates a plan for fast Fourier transforms.
plan | FFTW plan. |
FFTW library (www.fftw.org).
fft_plan fft_setup_plan | ( | long | x, |
long | y, | ||
long | z, | ||
fft_direction | dir, | ||
int | opt | ||
) |
Sets up a plan for fast Fourier transforms.
x | x dimension. |
y | y dimension. |
z | z dimension. |
dir | direction of transformation (FFTW_FORWARD or FFTW_BACKWARD) |
opt | optimization (0=FFTW_ESTIMATE, 1=FFTW_MEASURE, 2=FFTW_PATIENT, 3=FFTW_EXHAUSTIVE). |
FFTW library (www.fftw.org). The size and direction determines the plan. Both FFTW versions 2 and 3 are supported.
fft_plan fft_setup_plan | ( | Vector3< long > | size, |
fft_direction | dir, | ||
int | opt | ||
) |
Fast Fourier transforms a data array.
plan | Fourier transform plan. |
*a | data array. |
FFTW library (www.fftw.org). The transform plan encodes both the direction and size of the transform. The transformation is done in place and the resultant data are returned within the original array.
|
extern |