jax.numpy.fliplr#
- jax.numpy.fliplr(m)[source]#
Reverse the order of elements of an array along axis 1.
JAX implementation of
numpy.fliplr()
.- Parameters:
m (ArrayLike) – Array with at least two dimensions.
- Returns:
An array with the elements in reverse order along axis 1.
- Return type:
See also
jax.numpy.flip()
: reverse the order along the given axisjax.numpy.flipud()
: reverse the order along axis 0
Examples
>>> x = jnp.array([[1, 2], ... [3, 4]]) >>> jnp.fliplr(x) Array([[2, 1], [4, 3]], dtype=int32)