Skip to main content
`Ctrl`+`K`
scipy.fftpack.

# ifft2

scipy.fftpack.ifft2(x, shape=None, axes=(-2, -1), overwrite_x=False)

  2-D discrete inverse Fourier transform of real or complex sequence.

  Return inverse 2-D discrete Fourier transform of arbitrary type sequence x.

  See `ifft` for more information.

  See also

  `fft2`, `ifft`

  Examples

      >>> import numpy as np
      >>> from scipy.fftpack import fft2, ifft2
      >>> y = np.mgrid[:5, :5][0]
      >>> y
      array([[0, 0, 0, 0, 0],
             [1, 1, 1, 1, 1],
             [2, 2, 2, 2, 2],
             [3, 3, 3, 3, 3],
             [4, 4, 4, 4, 4]])
      >>> np.allclose(y, fft2(ifft2(y)))
      True