jax.numpy.flipud

Contents

jax.numpy.flipud#

jax.numpy.flipud(m)[source]#

Reverse the order of elements along axis 0 (up/down).

LAX-backend implementation of numpy.flipud().

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 column in the up/down direction. Rows are preserved, but appear in a different order than before.

Parameters:

m (array_like) – Input array.

Returns:

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

Return type:

array_like