PSCF v1.1
|
Fourier transform wrapper for real data. More...
#include <FFTBatched.h>
Public Member Functions | |
FFTBatched () | |
Default constructor. More... | |
virtual | ~FFTBatched () |
Destructor. More... | |
void | setup (RDField< D > &rDField, RDFieldDft< D > &kDField) |
Check and setup grid dimensions if necessary. More... | |
void | forwardTransform (RDField< D > &in, RDFieldDft< D > &out) |
Compute forward (real-to-complex) Fourier transform. More... | |
void | inverseTransform (RDFieldDft< D > &in, RDField< D > &out) |
Compute inverse (complex-to-real) Fourier transform. More... | |
const IntVec< D > & | meshDimensions () const |
Return the dimensions of the grid for which this was allocated. More... | |
Fourier transform wrapper for real data.
Definition at line 36 of file FFTBatched.h.
Pscf::Pspg::FFTBatched< D >::FFTBatched |
Default constructor.
Definition at line 46 of file FFTBatched.tpp.
|
virtual |
Destructor.
Definition at line 59 of file FFTBatched.tpp.
void Pscf::Pspg::FFTBatched< D >::setup | ( | RDField< D > & | rDField, |
RDFieldDft< D > & | kDField | ||
) |
Check and setup grid dimensions if necessary.
rDField | real data on r-space grid (device mem) |
kDField | complex data on k-space grid (device mem) |
Definition at line 73 of file FFTBatched.tpp.
References Pscf::Pspg::RDField< D >::meshDimensions(), Pscf::Pspg::RDFieldDft< D >::meshDimensions(), and UTIL_CHECK.
void Pscf::Pspg::FFTBatched< D >::forwardTransform | ( | RDField< D > & | in, |
RDFieldDft< D > & | out | ||
) |
Compute forward (real-to-complex) Fourier transform.
in | array of real values on r-space grid (device mem) |
out | array of complex values on k-space grid (device mem) |
Definition at line 248 of file FFTBatched.tpp.
References Pscf::Pspg::DField< Data >::capacity(), Pscf::Pspg::DField< Data >::cDField(), Pscf::Pspg::ThreadGrid::setThreadsLogical(), and UTIL_CHECK.
void Pscf::Pspg::FFTBatched< D >::inverseTransform | ( | RDFieldDft< D > & | in, |
RDField< D > & | out | ||
) |
Compute inverse (complex-to-real) Fourier transform.
in | array of complex values on k-space grid (device mem) |
out | array of real values on r-space grid (device mem) |
Definition at line 326 of file FFTBatched.tpp.
References Pscf::Pspg::DField< Data >::cDField().
|
inline |
Return the dimensions of the grid for which this was allocated.
Definition at line 123 of file FFTBatched.h.