permute_dimsΒΆ
- permute_dims(x: array, /, axes: Tuple[int, ...]) array ΒΆ
Permutes the axes (dimensions) of an array
x
.- Parameters:
x (array) β input array.
axes (Tuple[int, ...]) β tuple containing a permutation of
(0, 1, ..., N-1)
whereN
is the number of axes (dimensions) ofx
.
- Returns:
out (array) β an array containing the axes permutation. The returned array must have the same data type as
x
.