A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://numpy.org/doc/stable/reference/generated/numpy.fft.ifftshift.html below:

numpy.fft.ifftshift — NumPy v2.3 Manual

numpy.fft.ifftshift#
fft.ifftshift(x, axes=None)[source]#

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

Parameters:
xarray_like

Input array.

axesint or shape tuple, optional

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

Returns:
yndarray

The shifted array.

See also

fftshift

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

Examples

>>> import numpy as np
>>> freqs = np.fft.fftfreq(9, d=1./9).reshape(3, 3)
>>> freqs
array([[ 0.,  1.,  2.],
       [ 3.,  4., -4.],
       [-3., -2., -1.]])
>>> np.fft.ifftshift(np.fft.fftshift(freqs))
array([[ 0.,  1.,  2.],
       [ 3.,  4., -4.],
       [-3., -2., -1.]])

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4