casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes | Static Private Attributes
casa::FFTW Class Reference

C++ interface to the FFTWw library. More...

#include <FFTW.h>

List of all members.

Public Member Functions

 FFTW ()
 ~FFTW ()
void plan_r2c (const IPosition &size, Float *in, Complex *out)
 polymorphic interface to fftw[f]_plan...
void plan_r2c (const IPosition &size, Double *in, DComplex *out)
void plan_c2r (const IPosition &size, Complex *in, Float *out)
void plan_c2r (const IPosition &size, DComplex *in, Double *out)
void plan_c2c_forward (const IPosition &size, DComplex *in)
void plan_c2c_forward (const IPosition &size, Complex *in)
void plan_c2c_backward (const IPosition &size, DComplex *in)
void plan_c2c_backward (const IPosition &size, Complex *in)
void r2c (const IPosition &size, Float *in, Complex *out)
 polymorphic interface to fftw[f]_execute...
void r2c (const IPosition &size, Double *in, DComplex *out)
void c2r (const IPosition &size, Complex *in, Float *out)
void c2r (const IPosition &size, DComplex *in, Double *out)
void c2c (const IPosition &size, Complex *in, Bool forward)
void c2c (const IPosition &size, DComplex *in, Bool forward)

Private Attributes

FFTWPlanf * itsPlanR2Cf
FFTWPlan * itsPlanR2C
FFTWPlanf * itsPlanC2Rf
FFTWPlan * itsPlanC2R
FFTWPlanf * itsPlanC2CFf
FFTWPlan * itsPlanC2CF
FFTWPlanf * itsPlanC2CBf
FFTWPlan * itsPlanC2CB
unsigned flags

Static Private Attributes

static volatile Bool is_initialized_fftw
static Mutex theirMutex
 only once per process, not once per object

Detailed Description

C++ interface to the FFTWw library.

Review Status

Reviewed By:
NONE

Synopsis

This is a wrapper of FFTW3. It is only active if FFTW3 was found during the build. If not found, all functions won't do anything at all.

The interface is such that the presence of FFTW3 is only visible in the implementation. The header file does not need to know. In this way external code using this class does not need to set HAVE_FFTW.

Definition at line 56 of file FFTW.h.


Constructor & Destructor Documentation


Member Function Documentation

void casa::FFTW::c2c ( const IPosition size,
Complex *  in,
Bool  forward 
)
void casa::FFTW::c2c ( const IPosition size,
DComplex *  in,
Bool  forward 
)
void casa::FFTW::c2r ( const IPosition size,
Complex *  in,
Float out 
)
void casa::FFTW::c2r ( const IPosition size,
DComplex *  in,
Double out 
)
void casa::FFTW::plan_c2c_backward ( const IPosition size,
DComplex *  in 
)
void casa::FFTW::plan_c2c_backward ( const IPosition size,
Complex *  in 
)
void casa::FFTW::plan_c2c_forward ( const IPosition size,
DComplex *  in 
)
void casa::FFTW::plan_c2c_forward ( const IPosition size,
Complex *  in 
)
void casa::FFTW::plan_c2r ( const IPosition size,
Complex *  in,
Float out 
)
void casa::FFTW::plan_c2r ( const IPosition size,
DComplex *  in,
Double out 
)
void casa::FFTW::plan_r2c ( const IPosition size,
Float in,
Complex *  out 
)

polymorphic interface to fftw[f]_plan...

void casa::FFTW::plan_r2c ( const IPosition size,
Double in,
DComplex *  out 
)
void casa::FFTW::r2c ( const IPosition size,
Float in,
Complex *  out 
)

polymorphic interface to fftw[f]_execute...

void casa::FFTW::r2c ( const IPosition size,
Double in,
DComplex *  out 
)

Member Data Documentation

unsigned casa::FFTW::flags [private]

Definition at line 94 of file FFTW.h.

volatile Bool casa::FFTW::is_initialized_fftw [static, private]

Definition at line 96 of file FFTW.h.

FFTWPlan* casa::FFTW::itsPlanC2CB [private]

Definition at line 92 of file FFTW.h.

FFTWPlanf* casa::FFTW::itsPlanC2CBf [private]

Definition at line 91 of file FFTW.h.

FFTWPlan* casa::FFTW::itsPlanC2CF [private]

Definition at line 89 of file FFTW.h.

FFTWPlanf* casa::FFTW::itsPlanC2CFf [private]

Definition at line 88 of file FFTW.h.

FFTWPlan* casa::FFTW::itsPlanC2R [private]

Definition at line 86 of file FFTW.h.

FFTWPlanf* casa::FFTW::itsPlanC2Rf [private]

Definition at line 85 of file FFTW.h.

FFTWPlan* casa::FFTW::itsPlanR2C [private]

Definition at line 83 of file FFTW.h.

FFTWPlanf* casa::FFTW::itsPlanR2Cf [private]

Definition at line 82 of file FFTW.h.

Mutex casa::FFTW::theirMutex [static, private]

only once per process, not once per object

Definition at line 99 of file FFTW.h.


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