transpose#
- caput.mpiarray.MPIArray.transpose(*axes: collections.abc.Sequence[int] | int | None) MPIArray[source]#
Transpose the array axes.
- Parameters:
- *axes
Sequence[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 becomesa.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)
- *axes
- Returns:
- transposed_array
MPIArray Transposed
MPIArrayview of the original data.
- transposed_array