skued.mirror

skued.mirror(arr, axes=None)

Reverse array over many axes. Generalization of arr[::-1] for many dimensions.

Parameters
  • arr (~numpy.ndarray) – Array to be reversed

  • axes (int or tuple or None, optional) – Axes to be reversed. Default is to reverse all axes.

Returns

out – Mirrored array.

Return type

~numpy.ndarray