reshape#
- caput.mpiarray.MPIArray.reshape(*shape: collections.abc.Sequence[int | None], order: str = 'C') MPIArray[source]#
Reshape the array.
Must not attempt to reshape the distributed axis. That axis must be given an input length None.
- Parameters:
- *shape
Sequence[int|None] Sequence of axis lengths. The distributed must be given None.
- order
str, optional Read/write index order, ignoring memory layout of underlying array. ‘C’ means C-like order, ‘F’ means Fortran-like order. ‘A’ uses Fortran order _if_ array is Fortran-contiguous in memory, and C order otherwise.
- *shape
- Returns:
- reshaped_array
MPIArray Reshaped
MPIArrayas a view of the original data.
- reshaped_array