gather#

caput.mpiarray.MPIArray.gather(rank: int = 0) numpy.ndarray | None[source]#

Gather a full copy onto a specific rank.

Parameters:
rankint

Rank to gather onto. Default is 0.

Returns:
gathered_arrayndarray | None

The full global array on the specified rank. Returns None on all other ranks.