# cupy.rot90¶

cupy.rot90(a, k=1, axes=(0, 1))[source]

Rotate an array by 90 degrees in the plane specified by axes.

Note that axes argument has been introduced since NumPy v1.12. The contents of this document is the same as the original one.

Parameters
• a (ndarray) – Array of two or more dimensions.

• k (int) – Number of times the array is rotated by 90 degrees.

• axes – (tuple of ints): The array is rotated in the plane defined by the axes. Axes must be different.

Returns

Output array.

Return type

ndarray