cupyx.scipy.fft.irfft2(x, s=None, axes=(-2, -1), norm=None, overwrite_x=False)

Compute the two-dimensional inverse FFT for real input.

  • a (cupy.ndarray) – Array to be transform.
  • s (None or tuple of ints) – Shape of the output. If s is not given, they are determined from the lengths of the input along the axes specified by axes.
  • axes (tuple of ints) – Axes over which to compute the FFT.
  • norm (None or "ortho") – Keyword to specify the normalization mode.
  • overwrite_x (bool) – If True, the contents of x can be destroyed.

The transformed array which shape is specified by s and type will convert to complex if the input is other. If s is 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:



The input array may be modified in CUDA 10.1 and above, even when overwrite_x is False.