mlx.core.fft.rfft#
- rfft(a: array, n: int | None = None, axis: int = -1, stream: Stream | Device | None = None) array#
對實數輸入的一維離散傅立葉轉換。
The output has the same shape as the input except along
axisin which case it has sizen // 2 + 1.- 參數:
a (array) -- The input array. If the array is complex it will be silently cast to a real type.
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.
- 回傳:
The DFT of the input along the given axis. The output data type will be complex.
- 回傳型別: