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

bundles / numpy latest / numpy / fft / ifftshift

_ArrayFunctionDispatcher

numpy.fft:ifftshift

source: build-install/usr/lib/python3.14/site-packages/numpy/fft/_helper.py :77

Signature

def   ifftshift ( x axes = None )

Summary

The inverse of fftshift. Although identical for even-length x, the functions differ by one sample for odd-length x.

Parameters

x : array_like

Input array.

axes : int or shape tuple, optional

Axes over which to calculate. Defaults to None, which shifts all axes.

Returns

y : ndarray

The shifted array.

Examples

import numpy as np
freqs = np.fft.fftfreq(9, d=1./9).reshape(3, 3)
freqs
np.fft.ifftshift(np.fft.fftshift(freqs))

See also

fftshift

Shift zero-frequency component to the center of the spectrum.

Aliases

  • numpy.fft.ifftshift