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
.
Parameters: |
|
---|---|
Returns: |
|
See also
fftshift
>>> 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.]])
© 2005–2019 NumPy Developers
Licensed under the 3-clause BSD License.
https://docs.scipy.org/doc/numpy-1.17.0/reference/generated/numpy.fft.ifftshift.html