Warning
This page was created from a pull request.
jax.numpy.fft.ifftshiftΒΆ
-
jax.numpy.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.
LAX-backend implementation of
ifftshift()
. Original docstring below.- 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 β The shifted array.
- Return type
See also
fftshift()
Shift zero-frequency component to the center of the spectrum.
Examples
>>> 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.]])