mlx.core.fft.fft2

目录

mlx.core.fft.fft2#

fft2(a: array, s: tuple[int, ...] | None = None, axes: Sequence[int] | None = [-2, -1], stream: Stream | Device | None = None) array#

Two dimensional discrete Fourier Transform.

参数:
  • a (array) -- The input array.

  • s (list(int), optional) -- Sizes of the transformed axes. The corresponding axes in the input are truncated or padded with zeros to match the sizes in s. The default value is the sizes of a along axes.

  • axes (list(int), optional) -- Axes along which to perform the FFT. The default is [-2, -1].

返回:

The DFT of the input along the given axes.

返回类型:

array