MLXBackend.reverse#

static MLXBackend.reverse(arr)#

Reverse the order of elements in an array along all its axes.

Parameters:
arrNDArray

Input array.

Returns:
NDArray

Reversed array.