cunumeric.transpose#

cunumeric.transpose(a, axes=None)#

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