Abstract base class for FFT plans (FFTND, FFT1D).
#include <fft_base.hpp>
|
| virtual void | release () noexcept=0 |
| | Release internal resources.
|
| |
| virtual int | setBuffersRaw (void *data, void *work) noexcept=0 |
| | Attach data and work buffers.
|
| |
| virtual int | getBuffersRaw (void **data, void **work) noexcept=0 |
| | Retrieve current buffer pointers.
|
| |
| virtual int | plan () noexcept=0 |
| | Create backend FFT plans.
|
| |
| virtual int | execute (FFTDirection direction) noexcept=0 |
| | Execute the FFT.
|
| |
| virtual int | normalize () noexcept=0 |
| | Apply normalization to the transformed data.
|
| |
| virtual size_t | allocSize () const noexcept=0 |
| | Get the required buffer allocation size (in elements).
|
| |
| virtual size_t | globalSize () const noexcept=0 |
| | Get the total number of elements in the global tensor.
|
| |
| virtual int | ndim () const noexcept=0 |
| | Get the number of dimensions.
|
| |
| | operator bool () const noexcept |
| | Check if the plan is valid (alias for isConfigured).
|
| |
| virtual bool | isActive () const noexcept=0 |
| | Check if this rank participates in the FFT.
|
| |
| virtual FFTType | fftType () const noexcept=0 |
| | Get the FFT type (C2C or Z2Z).
|
| |
| PlanState | state () const noexcept |
| | Get the current plan state.
|
| |
| bool | isConfigured () const noexcept |
| | Check if the plan is at least configured (init() succeeded).
|
| |
| bool | isPlanned () const noexcept |
| | Check if the plan is fully planned and ready for execution.
|
| |
| | FFT (const FFT &)=delete |
| |
| FFT & | operator= (const FFT &)=delete |
| |
◆ FFT()
| shafft::FFT::FFT |
( |
const FFT & |
| ) |
|
|
delete |
◆ release()
| virtual void shafft::FFT::release |
( |
| ) |
|
|
pure virtualnoexcept |
◆ setBuffersRaw()
| virtual int shafft::FFT::setBuffersRaw |
( |
void * |
data, |
|
|
void * |
work |
|
) |
| |
|
pure virtualnoexcept |
◆ getBuffersRaw()
| virtual int shafft::FFT::getBuffersRaw |
( |
void ** |
data, |
|
|
void ** |
work |
|
) |
| |
|
pure virtualnoexcept |
Buffers may be swapped after execute().
- Parameters
-
| [out] | data | Current data buffer. |
| [out] | work | Current work buffer. |
- Returns
- 0 on success.
Implemented in shafft::FFTND, and shafft::FFT1D.
◆ plan()
| virtual int shafft::FFT::plan |
( |
| ) |
|
|
pure virtualnoexcept |
◆ execute()
◆ normalize()
| virtual int shafft::FFT::normalize |
( |
| ) |
|
|
pure virtualnoexcept |
◆ allocSize()
| virtual size_t shafft::FFT::allocSize |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ globalSize()
| virtual size_t shafft::FFT::globalSize |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ ndim()
| virtual int shafft::FFT::ndim |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ operator bool()
| shafft::FFT::operator bool |
( |
| ) |
const |
|
inlineexplicitnoexcept |
◆ isActive()
| virtual bool shafft::FFT::isActive |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ fftType()
| virtual FFTType shafft::FFT::fftType |
( |
| ) |
const |
|
pure virtualnoexcept |
◆ state()
- Returns
- The PlanState of this plan.
◆ isConfigured()
| bool shafft::FFT::isConfigured |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- true if state >= CONFIGURED.
◆ isPlanned()
| bool shafft::FFT::isPlanned |
( |
| ) |
const |
|
inlinenoexcept |
- Returns
- true if state == PLANNED.
◆ operator=()
| FFT & shafft::FFT::operator= |
( |
const FFT & |
| ) |
|
|
delete |
The documentation for this class was generated from the following file:
- include/shafft/detail/fft_base.hpp