cupynumeric.flip#
- cupynumeric.flip(m: ndarray, axis: NdShapeLike | None = None) ndarray #
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 new array that is constructed from m with the entries of axis reversed.
- Return type:
array_like
See also
- Availability:
Single GPU, Single CPU
Notes
cuPyNumeric implementation doesn’t return a view, it returns a new array