cupynumeric.rot90#
- cupynumeric.rot90(m: ndarray, k: int = 1, axes: Sequence[int] = (0, 1)) ndarray #
Rotate an array by 90 degrees in the plane specified by axes.
Rotation direction is from the first towards the second axis. This means for a 2D array with the default k and axes, the rotation will be counterclockwise.
- Parameters:
m (array_like) – Array of two or more dimensions.
k (integer) – Number of times the array is rotated by 90 degrees.
axes ((2,) array_like) – The array is rotated in the plane defined by the axes. Axes must be different.
- Returns:
y – A rotated copy of m.
- Return type: