cupynumeric.fft.fftshift#

cupynumeric.fft.fftshift(
x: ndarray,
axes: int | tuple[int, ...] | None = None,
) ndarray#

Shift the zero-frequency component to the center of the spectrum.

This function swaps half-spaces for all axes listed (defaults to all). Note that y[0] is the Nyquist component only if len(x) is even.

Parameters:
  • x (array_like) – Input array.

  • axes (int or shape tuple, optional) – Axes over which to shift. Default is None, which shifts all axes.

Returns:

y – The shifted array.

Return type:

ndarray

Availability:

Multiple GPUs, Multiple CPUs