Back to Numerical Arrays (NumPy)
np.permute_dims
Permute the dimensions of an array.
Syntax
np.permute_dims(a, axes?)
Description
Permute the dimensions of an array. This is an alias for transpose, added in NumPy 2.0.
Parameters
| Name | Description |
|---|---|
| a | - Input array |
| axes(optional) | - Permutation of axes (optional, reverses all axes if not provided) |
Returns
NDArray