ifftshift#

pynlo.utility.fft.ifftshift(x, axis=-1)[source]#

Shift the origin from the center to the beginning of the array.

The inverse of fftshift. This function is used before an fft operation to shift from monotonic to fft ordering. Although identical for even-length x, ifftshift differs from fftshift by one sample for odd-length x.

Parameters:
xarray_like

Input array.

axisint, optional

The axis over which to shift. The default is the last axis.

Returns:
ndarray

The shifted array.