|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
#include <FFT.h>


Public Types | |
| typedef FieldLayout< Dim > | Layout_t |
| typedef BareField< T, Dim > | RealField_t |
| typedef LField< T, Dim > | RealLField_t |
| typedef std::complex< T > | Complex_t |
| typedef BareField< Complex_t, Dim > | ComplexField_t |
| typedef LField< Complex_t, Dim > | ComplexLField_t |
| typedef FFTBase< Dim, T >::Domain_t | Domain_t |
Public Types inherited from FFTBase< Dim, T > | |
| enum | { dimensions = Dim } |
| enum | FFT_e { ccFFT , rcFFT , sineFFT , cosineFFT } |
| typedef T | Precision_t |
| typedef NDIndex< Dim > | Domain_t |
| typedef FFTPACK< T > | InternalFFT_t |
Public Member Functions | |
| FFT (const Domain_t &rdomain, const Domain_t &cdomain, const bool transformTheseDims[Dim], const bool &compressTemps=false) | |
| FFT (const Domain_t &rdomain, const Domain_t &cdomain, const bool &compressTemps=false, int serialAxes=1) | |
| ~FFT (void) | |
| void | transform (int direction, RealField_t &f, ComplexField_t &g, const bool &constInput=false) |
| void | transform (const char *directionName, RealField_t &f, ComplexField_t &g, const bool &constInput=false) |
| void | transform (int direction, ComplexField_t &f, RealField_t &g, const bool &constInput=false) |
| void | transform (const char *directionName, ComplexField_t &f, RealField_t &g, const bool &constInput=false) |
Public Member Functions inherited from FFTBase< Dim, T > | |
| FFTBase () | |
| FFTBase (FFT_e transform, const Domain_t &domain, const bool transformTheseDims[Dim], bool compressTemps) | |
| FFTBase (FFT_e transform, const Domain_t &domain, bool compressTemps) | |
| virtual | ~FFTBase (void) |
| void | write (std::ostream &out) const |
| void | setDirectionName (int direction, const char *directionName) |
| void | setNormFact (Precision_t nf) |
| int | transVnodes () const |
Private Member Functions | |
| void | setup (void) |
Private Attributes | |
| Layout_t ** | tempLayouts_m |
| Layout_t * | tempRLayout_m |
| ComplexField_t ** | tempFields_m |
| RealField_t * | tempRField_m |
| Domain_t | complexDomain_m |
| int | serialAxes_m |
Additional Inherited Members | |
Protected Member Functions inherited from FFTBase< Dim, T > | |
| int | getDirection (const char *directionName) const |
| translate direction name string into dimension number | |
| bool | transformDim (unsigned d) const |
| query whether this dimension is to be transformed | |
| unsigned | numTransformDims (void) const |
| query number of transform dimensions | |
| unsigned | activeDimension (unsigned d) const |
| get dimension number from list of transformed dimensions | |
| InternalFFT_t & | getEngine (void) |
| access the internal FFT Engine | |
| Precision_t & | getNormFact (void) |
| get the FFT normalization factor | |
| const Domain_t & | getDomain (void) const |
| get our domain | |
| bool | checkDomain (const Domain_t &dom1, const Domain_t &dom2) const |
| compare indexes of two domains | |
| bool | compressTemps (void) const |
| do we compress temps? | |
Static Protected Attributes inherited from FFTBase< Dim, T > | |
| static GuardCellSizes< Dim > | nullGC = GuardCellSizes<Dim>() |
| null GuardCellSizes object for checking BareField arguments to transform | |
real-to-complex FFT class
| typedef std::complex<T> FFT< RCTransform, Dim, T >::Complex_t |
| typedef FFTBase<Dim,T>::Domain_t FFT< RCTransform, Dim, T >::Domain_t |
| typedef FieldLayout<Dim> FFT< RCTransform, Dim, T >::Layout_t |
| typedef BareField<T,Dim> FFT< RCTransform, Dim, T >::RealField_t |
| typedef LField<T,Dim> FFT< RCTransform, Dim, T >::RealLField_t |
| FFT< RCTransform, Dim, T >::FFT | ( | const Domain_t & | rdomain, |
| const Domain_t & | cdomain, | ||
| const bool | transformTheseDims[Dim], | ||
| const bool & | compressTemps = false |
||
| ) |
Create a new FFT object with the given domains for input/output Fields Specify which dimensions to transform along. Optional argument compress indicates whether or not to compress temporary Fields in between uses.
| FFT< RCTransform, Dim, T >::FFT | ( | const Domain_t & | rdomain, |
| const Domain_t & | cdomain, | ||
| const bool & | compressTemps = false, |
||
| int | serialAxes = 1 |
||
| ) |
Same as above, but transform all dims:
| FFT< RCTransform, Dim, T >::~FFT | ( | void | ) |
|
private |
complex-to-real FFT on GPU: pass pointer to GPU memory where complex field is stored, do the inverse FFT and transfer real field back to host memory setup performs all the initializations necessary after the transform directions have been specified.
Definition at line 785 of file FFT.hpp.
References Dim, PARALLEL, PAssert_GT, PAssert_LT, PInsist, and SERIAL.
| void FFT< RCTransform, Dim, T >::transform | ( | const char * | directionName, |
| ComplexField_t & | f, | ||
| RealField_t & | g, | ||
| const bool & | constInput = false |
||
| ) |
| void FFT< RCTransform, Dim, T >::transform | ( | const char * | directionName, |
| RealField_t & | f, | ||
| ComplexField_t & | g, | ||
| const bool & | constInput = false |
||
| ) |
| void FFT< RCTransform, Dim, T >::transform | ( | int | direction, |
| ComplexField_t & | f, | ||
| RealField_t & | g, | ||
| const bool & | constInput = false |
||
| ) |
| void FFT< RCTransform, Dim, T >::transform | ( | int | direction, |
| RealField_t & | f, | ||
| ComplexField_t & | g, | ||
| const bool & | constInput = false |
||
| ) |
real-to-complex FFT: specify +1 or -1 to indicate forward or inverse transform, or specify the user-defined name string for the direction. Supply a second BareField to store the output. optional argument constInput indicates whether or not to treat the input Field argument f as const. If not, we can use it as a temporary in order to avoid an additional data transpose.
|
private |
|
private |
|
private |
|
private |
How the temporary fields are laid out; these are computed from the input Field's domain. This will be allocated as an array of FieldLayouts with nTransformDims elements. Each is SERIAL along the zeroth dimension and the axes are permuted so that the transform direction is first
|
private |
|
private |