KokkosFFT::fftshift
-
template<typename ExecutionSpace, typename ViewType>
void KokkosFFT::fftshift(const ExecutionSpace &exec_space, const ViewType &inout, std::optional<int> axes = std::nullopt) Shift the zero-frequency component to the center of the spectrum.
- Template Parameters:
ExecutionSpace – The type of Kokkos execution space
ViewType – Input/Output View type for the shift
- Parameters:
exec_space – [in] Kokkos execution space
inout – [in,out] Spectrum
axes – [in] Axes over which to shift (default: nullopt, shifting over all axes)
-
template<typename ExecutionSpace, typename ViewType, std::size_t DIM = 1>
void KokkosFFT::fftshift(const ExecutionSpace &exec_space, const ViewType &inout, axis_type<DIM> axes) Shift the zero-frequency component to the center of the spectrum.
- Template Parameters:
ExecutionSpace – The type of Kokkos execution space
ViewType – Input/Output View type for the shift
DIM – The dimensionality of the shift
- Parameters:
exec_space – [in] Kokkos execution space
inout – [in,out] Spectrum
axes – [in] Axes over which to shift