Documentation Center    • Trials   • Product Updates   Transfer
distributed array data or gpuArray to local workspace   X =
gather(A) X = gather(C, lab)   X = gather(A) can operate inside
an spmd statement, pmode, or communicating job to gather
together the data of a codistributed array, or outside an spmd
statement to gather the data of a distributed array. If you
execute this inside an spmd statement, pmode, or communicating
job, X is a replicated array with all the data of the array on
every worker. If you execute this outside an spmd statement, X
is an array in the local workspace, with the data transferred
from the multiple workers.  X = gather(distributed(X)) or X =
gather(codistributed(X)) returns the original array X.  X =
gather(C, lab) converts a codistributed array C to a variant
array X, such that all of the data is contained on worker lab,
and X is a 0-by-0 empty double on all other workers.  For a
gpuArray input, X = gather(A) transfers the data from the GPU to
the local workspace.  If the input