cunumeric.transpose#

cunumeric.transpose(a: ndarray, axes: list[int] | None = None) ndarray#

Permute the dimensions of an array.

Parameters:
  • a (array_like) – Input array.

  • axes (list[int], optional) – By default, reverse the dimensions, otherwise permute the axes according to the values given.

Returns:

pa with its axes permuted. A view is returned whenever possible.

Return type:

ndarray

See also

numpy.transpose

Availability:

Multiple GPUs, Multiple CPUs