transpose#

caput.mpiarray.MPIArray.transpose(*axes: collections.abc.Sequence[int] | int | None) MPIArray[source]#

Transpose the array axes.

Parameters:
*axesSequence[int] | int | None, optional

Transpose arguments:

  • None or no argument: reverses the order of the axes.

  • sequence of ints: i in the j-th place in the tuple means a’s i-th axis becomes a.transpose()’s j-th axis.

  • n ints: same as an n-tuple of the same ints (this form is intended simply as a “convenience” alternative to the tuple form)

Returns:
transposed_arrayMPIArray

Transposed MPIArray view of the original data.