Skip to content

Class TempLat::FFTNormalization

template <size_t NDim>

ClassList > TempLat > FFTNormalization

A class which applies the normalization to a block of memory after C2R and R2C fft's. You can choose between: fourier: C2R: 1/N, R2C: 1, mixed: C2R: 1/sqrt(N), R2C: 1/sqrt(N), config: C2R: 1, R2C: 1/N,. More...

  • #include <fftnormalization.h>

Public Static Attributes

Type Name
constexpr int cConfigType = 0
constexpr int cFourierType = 1
constexpr int cMixedType = 2

Public Functions

Type Name
FFTNormalization (FFTLayoutStruct< NDim > layout)
void apply (MemoryBlock< T, NDim > & mBlock, T norm)
void c2r (MemoryBlock< T, NDim > & mBlock, T scale)
void r2c (MemoryBlock< T, NDim > & mBlock, T scale)
void setToConfigType ()
void setToFourierType ()
void setToMixedType ()

Detailed Description

Unit test: ctest -R test-fftnormalization

Public Static Attributes Documentation

variable cConfigType

constexpr int TempLat::FFTNormalization< NDim >::cConfigType;

variable cFourierType

constexpr int TempLat::FFTNormalization< NDim >::cFourierType;

variable cMixedType

constexpr int TempLat::FFTNormalization< NDim >::cMixedType;

Public Functions Documentation

function FFTNormalization

inline TempLat::FFTNormalization::FFTNormalization (
    FFTLayoutStruct < NDim > layout
) 

function apply

template<typename T>
inline void TempLat::FFTNormalization::apply (
    MemoryBlock < T, NDim > & mBlock,
    T norm
) 

function c2r

template<typename T>
inline void TempLat::FFTNormalization::c2r (
    MemoryBlock < T, NDim > & mBlock,
    T scale
) 

function r2c

template<typename T>
inline void TempLat::FFTNormalization::r2c (
    MemoryBlock < T, NDim > & mBlock,
    T scale
) 

function setToConfigType

inline void TempLat::FFTNormalization::setToConfigType () 

function setToFourierType

inline void TempLat::FFTNormalization::setToFourierType () 

function setToMixedType

inline void TempLat::FFTNormalization::setToMixedType () 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/fft/fftnormalization.h