rfft(x, n=None, axis=-1, norm=None, overwrite_x=False)¶
Compute the one-dimensional FFT for real input.
The returned array contains the positive frequency components of the corresponding
fft(), up to and including the Nyquist frequency.
- x (cupy.ndarray) – Array to be transformed.
- n (None or int) – Length of the transformed axis of the output. If
nis not given, the length of the input along the axis specified by
- axis (int) – Axis over which to compute the FFT.
- norm (None or
'ortho') – Normalization mode.
- overwrite_x (bool) – If True, the contents of
xcan be destroyed.
The transformed array.