API Reference
This section documents the public user interface of Kokkos-FFT.
APIs are defined in KokkosFFT namespace and implementation details are defined in KokkosFFT::Impl namespace.
Thus, it is highly discouraged for users to access functions in KokkosFFT::Impl namespace.
Except for KokkosFFT::Plan, there are corresponding functions in numpy.fft as shown below.
Note
For the moment, APIs under KokkosFFT::Distributed and KokkosFFT::Testing are considered experimental and may be subject to changes without warnings.
FFT Plan
Description |
|
|
|---|---|---|
A class that manages a FFT plan of backend FFT library |
||
Execute FFT given by the Plan on input and output Views |
Standard FFTs
Description |
|
|
|---|---|---|
One dimensional FFT in forward direction |
||
One dimensional FFT in backward direction |
||
Two dimensional FFT in forward direction |
||
Two dimensional FFT in backward direction |
||
N-dimensional FFT in forward direction |
||
N-dimensional FFT in backward direction |
Real FFTs
Description |
|
|
|---|---|---|
One dimensional FFT for real input |
||
Inverse of rfft |
||
Two dimensional FFT for real input |
||
Inverse of rfft2 |
||
N-dimensional FFT for real input |
||
Inverse of rfftn |
Hermitian FFTs
Description |
|
|
|---|---|---|
One dimensional FFT of a signal that has Hermitian symmetry |
||
Inverse of hfft |
Helper routines
Description |
|
|
|---|---|---|
Return the DFT sample frequencies |
||
Return the DFT sample frequencies for Real FFTs |
||
Shift the zero-frequency component to the center of the spectrum |
||
The inverse of fftshift |
Enums
Description |
|
|---|---|
Tag to specify when and how to normalize |
|
Tag to specify FFT direction |
Macros
Following macros can be used to check whether a backend library is enabled or not.
Description |
Macros |
|---|---|
Defined if the FFTW is enabled. |
|
Defined if the cufft is enabled. |
|
Defined if the hipfft is enabled. |
|
Defined if the rocfft is enabled. |
|
Defined if the oneMKL is enabled. |
|