pydims.permute_dims#

pydims.permute_dims(array, /, dims)[source]#

Permute the dimensions of an array.

Parameters:
  • array (TypeVar(DimArr, bound= DimensionedArray)) – Array to permute.

  • dims (tuple[Hashable, ...]) – New order of dimensions.

Returns:

TypeVar(DimArr, bound= DimensionedArray) – Permuted array.