cunumeric.flip#

cunumeric.flip(m, axis=None)#

Reverse the order of elements in an array along the given axis.

The shape of the array is preserved, but the elements are reordered.

Parameters
  • m (array_like) – Input array.

  • axis (None or int or tuple[int], optional) –

    Axis or axes along which to flip over. The default, axis=None, will flip over all of the axes of the input array. If axis is negative it counts from the last to the first axis.

    If axis is a tuple of ints, flipping is performed on all of the axes specified in the tuple.

Returns

out – A view of m with the entries of axis reversed. Since a view is returned, this operation is done in constant time.

Return type

array_like

See also

numpy.flip

Availability

Single GPU, Single CPU