ifftshift

ifftshift(x: array, /, *, axes: int | Sequence[int] | None = None) array

Inverse of fftshift.

Note

Although identical for even-length x, fftshift and ifftshift differ by one sample for odd-length x.

Parameters:
  • x (array) – input array. Should have a floating-point data type.

  • axes (Optional[Union[int, Sequence[int]]]) –

    axes over which to perform the inverse shift. If None, the function must shift all axes. Default: None.

    If axes contains two or more entries which resolve to the same axis (i.e., resolved axes are not unique), the behavior is unspecified and thus implementation-defined.

Returns:

out (array) – the shifted array. The returned array must have the same data type and shape as x.

Notes

New in version 2022.12.