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
variable cFourierType
variable cMixedType
Public Functions Documentation
function FFTNormalization
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
function setToFourierType
function setToMixedType
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/fft/fftnormalization.h