This is a pre-release version (latest).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy latest / scipy / fftpack / _basic / fft2

function

scipy.fftpack._basic:fft2

source: build-install/usr/lib/python3.14/site-packages/scipy/fftpack/_basic.py:372

Signature

def fft2(x, shape = None, axes = (-2, -1), overwrite_x = False)

Summary

2-D discrete Fourier transform.

Extended Summary

Return the 2-D discrete Fourier transform of the 2-D argument x.

Examples

import numpy as np
from scipy.fftpack import fft2, ifft2
y = np.mgrid[:5, :5][0]
y
np.allclose(y, ifft2(fft2(y)))
✓
True

See also

fftn

for detailed information.

Aliases

  • scipy.fftpack.fft2