cupyx.scipy.fft.irfft2#
- cupyx.scipy.fft.irfft2(x, s=None, axes=(-2, -1), norm=None, overwrite_x=False, *, plan=None)[source]#
Compute the two-dimensional inverse FFT for real input.
- Parameters:
a (cupy.ndarray) – Array to be transform.
s (None or tuple of ints) – Shape of the output. If
sis not given, they are determined from the lengths of the input along the axes specified byaxes.axes (tuple of ints) – Axes over which to compute the FFT.
norm (
"backward","ortho", or"forward") – Optional keyword to specify the normalization mode. Default isNone, which is an alias of"backward".overwrite_x (bool) – If True, the contents of
xcan be destroyed.plan (
cupy.cuda.cufft.PlanNdorNone) –a cuFFT plan for transforming
xoveraxes, which can be obtained using:plan = cupyx.scipy.fftpack.get_fft_plan(x, s, axes, value_type='C2R')
Note that
planis defaulted toNone, meaning CuPy will use an auto-generated plan behind the scene.
- Returns:
The transformed array which shape is specified by
sand type will convert to complex if the input is other. Ifsis not given, the length of final transformed axis of output will be 2*(m-1) where m is the length of the final transformed axis of the input.- Return type:
See also