jax.numpy.fliplr

jax.numpy.fliplr(m)[source]

Reverse the order of elements along axis 1 (left/right).

LAX-backend implementation of fliplr().

The JAX version of this function may in some cases return a copy rather than a view of the input.

Original docstring below.

For a 2-D array, this flips the entries in each row in the left/right direction. Columns are preserved, but appear in a different order than before.

Parameters

m (array_like) – Input array, must be at least 2-D.

Returns

f – A view of m with the columns reversed. Since a view is returned, this operation is \(\mathcal O(1)\).

Return type

ndarray