mlx.core.fft.fftshift

目錄

mlx.core.fft.fftshift#

fftshift(a: array, axes: int | Sequence[int] | None = None, stream: Stream | mlx.core.ThreadLocalStream | Device | None = None) array#

將零頻率成分移到頻譜中心。

參數:
  • a (array) -- 輸入陣列。

  • axes (int or list(int), optional) -- Axis or axes over which to perform the shift. If None, shift all axes.

回傳值:

The shifted array with the same shape as the input.

回傳值型別:

array