- cupyx.scipy.fft.rfft(x, n=None, axis=- 1, norm=None, overwrite_x=False, *, plan=None)¶
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.
axis (int) – Axis over which to compute the FFT.
"forward") – Optional keyword to specify the normalization mode. Default is
None, which is an alias of
overwrite_x (bool) – If True, the contents of
xcan be destroyed.
a cuFFT plan for transforming
axis, which can be obtained using:
plan = cupyx.scipy.fftpack.get_fft_plan(x, n, axis, value_type='R2C')
planis defaulted to
None, meaning CuPy will use an auto-generated plan behind the scene.
The transformed array.
- Return type