mlx.core.fft.fft#
- fft(a: array, n: int | None = None, axis: int = -1, norm: str = 'backward', stream: Stream | mlx.core.ThreadLocalStream | Device | None = None) array#
一維離散傅立葉變換。
- 參數:
a (array) -- 輸入陣列。
n (int, optional) -- Size of the transformed axis. The corresponding axis in the input is truncated or padded with zeros to match
n. The default value isa.shape[axis].axis (int, optional) -- Axis along which to perform the FFT. The default is
-1.norm (str, optional) -- One of
"backward","ortho", or"forward". Default is"backward".
- 回傳值:
The DFT of the input along the given axis.
- 回傳值型別: