nabu.processing.fftshift
source module nabu.processing.fftshift
Classes
-
FFTshiftBase — Parameters
shape: tuple Array shape - can be 1D or 2D. 3D is not supported. dtype: str or numpy.dtype Data type, eg. "f", numpy.complex64, ... dst_dtype: str or numpy.dtype Output data type. If not provided (default), the shift is done in-place. axes: tuple, optional Axes over which to shift. Default is None, which shifts all axes.
-
OpenCLFFTshift — Parameters
shape: tuple Array shape - can be 1D or 2D. 3D is not supported. dtype: str or numpy.dtype Data type, eg. "f", numpy.complex64, ... dst_dtype: str or numpy.dtype Output data type. If not provided (default), the shift is done in-place. axes: tuple, optional Axes over which to shift. Default is None, which shifts all axes.
source class FFTshiftBase(shape, dtype, dst_dtype=None, axes=None, **backend_options)
Parameters
shape: tuple Array shape - can be 1D or 2D. 3D is not supported. dtype: str or numpy.dtype Data type, eg. "f", numpy.complex64, ... dst_dtype: str or numpy.dtype Output data type. If not provided (default), the shift is done in-place. axes: tuple, optional Axes over which to shift. Default is None, which shifts all axes.
Other Parameters
backend_options: named arguments to pass to CudaProcessing or OpenCLProcessing
Methods
source method FFTshiftBase.fftshift(arr, dst=None)
source method FFTshiftBase.ifftshift(arr, dst=None)
source class OpenCLFFTshift(shape, dtype, dst_dtype=None, axes=None, **backend_options)
Bases : FFTshiftBase
Parameters
shape: tuple Array shape - can be 1D or 2D. 3D is not supported. dtype: str or numpy.dtype Data type, eg. "f", numpy.complex64, ... dst_dtype: str or numpy.dtype Output data type. If not provided (default), the shift is done in-place. axes: tuple, optional Axes over which to shift. Default is None, which shifts all axes.
Other Parameters
backend_options: named arguments to pass to CudaProcessing or OpenCLProcessing