rot90#
- class brainunit.math.rot90(m, k=1, axes=(0, 1), **kwargs)#
Rotate an array by 90 degrees in the plane specified by axes.
Rotation direction is from the first towards the second axis.
- Parameters:
- Returns:
y – A rotated view of m.
This is a quantity if m is a quantity.
- Return type:
Array| saiunit.Quantity
Examples
>>> import saiunit as u >>> a = [[1, 2], [3, 4]] * u.second >>> u.math.rot90(a)