libwt  1.0.0
A C++ library for the continous wavelet transform.
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
wt::FFT Class Reference

Implements the generic FFT-plan interface for the FFTW3 library. More...

#include <fft_fftw3.hh>

Public Types

enum  Direction { FORWARD, BACKWARD }
 Specifies the possible FFT directions. More...
 

Public Member Functions

 FFT (CVector &in, CVector &out, Direction dir)
 Constructs the FFT of the input vector in and stores the result into out. More...
 
 FFT (CMatrix &in, CMatrix &out, Direction dir)
 Constructs the FFT of the column vectors in and stores the result into the columns of out. More...
 
 FFT (CVector &inout, Direction dir)
 Construts the in-place FFT of the vector inout. More...
 
 FFT (CMatrix &inout, Direction dir)
 Construts the in-place FFT of the column vectors inout. More...
 
virtual ~FFT ()
 Destructor. More...
 
void exec ()
 Executes the FFT. More...
 

Static Public Member Functions

static void exec (CVector &in, CVector &out, Direction dir)
 Executes the FFT of the input vector in and stores the result into out. More...
 
static void exec (CMatrix &in, CMatrix &out, Direction dir)
 Executes the FFT of the input column vectors in and stores the result into the columns of out. More...
 
static void exec (CVector &inout, Direction dir)
 Executes the in-place FFT of the vector inout. More...
 
static void exec (CMatrix &inout, Direction dir)
 Executes the in-place FFT of the column vectors inout. More...
 
static size_t roundUp (size_t N)
 Computes the smallest samples size larger than or equal to N for which the FFT can be computed fast. More...
 

Protected Attributes

fftw_plan _plan
 The actual FFTW3 plan being executed. More...
 

Detailed Description

Implements the generic FFT-plan interface for the FFTW3 library.

Member Enumeration Documentation

Specifies the possible FFT directions.

Enumerator
FORWARD 

Forward transform.

BACKWARD 

Backward transform.

Constructor & Destructor Documentation

FFT::FFT ( CVector &  in,
CVector &  out,
Direction  dir 
)

Constructs the FFT of the input vector in and stores the result into out.

FFT::FFT ( CMatrix &  in,
CMatrix &  out,
Direction  dir 
)

Constructs the FFT of the column vectors in and stores the result into the columns of out.

FFT::FFT ( CVector &  inout,
Direction  dir 
)

Construts the in-place FFT of the vector inout.

FFT::FFT ( CMatrix &  inout,
Direction  dir 
)

Construts the in-place FFT of the column vectors inout.

FFT::~FFT ( )
virtual

Destructor.

Member Function Documentation

void FFT::exec ( )

Executes the FFT.

void FFT::exec ( CVector &  in,
CVector &  out,
Direction  dir 
)
static

Executes the FFT of the input vector in and stores the result into out.

void FFT::exec ( CMatrix &  in,
CMatrix &  out,
Direction  dir 
)
static

Executes the FFT of the input column vectors in and stores the result into the columns of out.

void FFT::exec ( CVector &  inout,
Direction  dir 
)
static

Executes the in-place FFT of the vector inout.

void FFT::exec ( CMatrix &  inout,
Direction  dir 
)
static

Executes the in-place FFT of the column vectors inout.

size_t FFT::roundUp ( size_t  N)
static

Computes the smallest samples size larger than or equal to N for which the FFT can be computed fast.

Member Data Documentation

fftw_plan wt::FFT::_plan
protected

The actual FFTW3 plan being executed.


The documentation for this class was generated from the following files: