BaseFFT

class BaseFFT : public tsa::AlgoBase

Base class for various FFT.

Subclassed by tsa::ComplexFFT, tsa::DCT, tsa::DST, tsa::IDCT, tsa::InverseRealFFT, tsa::RealFFT

Setters

inline void SetPlanningMode(enum FFTPlanningMode mode)

Set the way in which the plan is constructed. No new plan is generated.

Parameters:

mode – the requested planning mode.

inline void SetPreserveInput(bool flag = true)

Request that the input buffer is preserved during the transformation. No new plan is generated.

Parameters:

flag – true (default) if input buffer must be preserved, false otherwise

Operations

virtual void MakePlan() = 0

Make a new plan, with the current parameters.

static inline void SaveWisdomOnFile(std::string filename)

Save the actual wisdom for plan generation on a file

Parameters:

filename – the name of the file

static inline void LoadWisdomFromFile(std::string filename)

Load the actual wisdom for plan generation from a file

Parameters:

filename – the name of the file

static inline void ForgetWisdom()

Forget wisdom

Public Functions

inline BaseFFT(int size, enum FFTPlanningMode mode, bool PreserveInput)

Constructor

Parameters:
  • size – the size of the transform

  • mode – specify the way in which plans are calculated

  • PreserveInput – true if the input buffer must be preserved during the transform, false otherwise

inline BaseFFT(const BaseFFT &from)

Copy constructor

Parameters:

from – The instance that must be copied

inline virtual ~BaseFFT()

Destructor