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

Operations

virtual void MakePlan() = 0

Make a new plan, with the current parameters.

static void SaveWisdomOnFile(std::string filename)

Save the actual wisdom for plan generation on a file

Parameters
  • filename: the name of the file

static void LoadWisdomFromFile(std::string filename)

Load the actual wisdom for plan generation from a file

Parameters
  • filename: the name of the file

static void ForgetWisdom()

Forget wisdom

Setters

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.

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

Public Functions

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

BaseFFT(const BaseFFT &from)

Copy constructor

Parameters
  • from: The instance that must be copied

virtual ~BaseFFT()

Destructor