41 fftw_destroy_plan(fwdPlan);
42 fftw_destroy_plan(invPlan);
77 printf(
"ComplexFFT::fwdTransform : data not present, please switch data\n");
79 fftw_execute(fwdPlan);
91 printf(
"ComplexFFT::invTransform : data not present, please switch data\n");
93 fftw_execute(invPlan);
105 #endif // COMPLEXFFT_H_
void destroyPlan(void)
Method to destroy the plans.
ComplexFFT(ComplexFFTData *d)
fft init ... data pointed to by 'd'
ComplexFFTData * data
The pointer to the relevant data.
class ComplexFFT controls fftw plans and executes fwd/inv transforms
virtual ~ComplexFFT()
fft deconstructor
void invTransform()
Inverse transform the data (out to in)
fftw_complex * in
the input and output arrays
void switchData(ComplexFFTData *d)
Use this to change associated fft data (for fft'ing)
int getSize()
Returns the number of elements in the input and output arrays.
void createPlan(void)
Method to create the plans.
void fwdTransform()
Forward transform the data (in to out)
fftw_plan fwdPlan
The fwd/inv plans.
class ComplexFFTData controls and manipulates complex fft data