Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members

FourierTransform Class Reference

#include <fft.hpp>

List of all members.


Detailed Description

A class of discrete Fourier Transform.

FourierTransform class implements a Cooley–Tukey algorithm for fast matvec with DFT matrix and direct matvec for testing.

Definition at line 45 of file fft.hpp.

Public Types

enum  mv_mode { normal, conj }
 Type of matrix which will be use in operations: DFT or its conjugate. More...

Public Member Functions

 FourierTransform (unsigned _k)
 Initialize FourierTransform for DFT NxN matrix with N=2^k.
void Matvec (const Complex *vec, Complex *res, mv_mode mode=normal) const
 Direct matvec DFT matrix with a vector.
void MatvecFast (const Complex *vec, Complex *res, mv_mode mode=normal)
 Fast matvec DFT matrix with a vector.
 ~FourierTransform ()
 The destructor.


Member Enumeration Documentation

enum FourierTransform::mv_mode
 

Type of matrix which will be use in operations: DFT or its conjugate.

Enumeration values:
normal 
conj 

Definition at line 54 of file fft.hpp.


Constructor & Destructor Documentation

FourierTransform::FourierTransform unsigned  _k  ) 
 

Initialize FourierTransform for DFT NxN matrix with N=2^k.

Definition at line 74 of file fft.cpp.

FourierTransform::~FourierTransform  ) 
 

The destructor.

Definition at line 80 of file fft.cpp.


Member Function Documentation

void FourierTransform::Matvec const Complex vec,
Complex res,
mv_mode  mode = normal
const
 

Direct matvec DFT matrix with a vector.

Parameters:
vec Complex vector size N to witch DFT will apply
res Complex vector size N where result will be save
mode Calc matvec with DFT matrix or DFT conjugate

Definition at line 103 of file fft.cpp.

References conj.

void FourierTransform::MatvecFast const Complex vec,
Complex res,
mv_mode  mode = normal
 

Fast matvec DFT matrix with a vector.

Parameters:
vec Complex vector size N to witch DFT will apply
res Complex vector size N where result will be save
mode Calc matvec with DFT matrix or DFT conjugate

Definition at line 121 of file fft.cpp.

References conj.

Referenced by SmoluchowskiCalcFast::calc_L1(), SmoluchowskiCalcFast::calc_L1_fix_f(), SmoluchowskiCalcFast::calc_L2(), SmoluchowskiCalcFast::calc_L2_fix_f(), and SmoluchowskiCalcFast::fix_f_arg().


The documentation for this class was generated from the following files:
Generated on Sun May 25 01:58:07 2025 for SmoluchowskiSolver by Doxygen