gather
Collect tall array into memory after executing queued operations
Description
executes all queued operations required to calculate unevaluated tall arrayY
= gather(X
)X
and collects the results into memory asY
.
MATLAB®can run out of memory if the result of thegather
calculation is too large. If you are unsure whether the result can fit in memory, usegather(head(X))
orgather(tail(X))
to perform the full calculation, but bring only a small portion of the result into memory.
Usegather
sparingly to ensure that extra passes through the data are combined during the calculations whenever possible. For more information, seeDeferred Evaluation of Tall Arrays.
Examples
Input Arguments
Output Arguments
Tips
If you have Parallel Computing Toolbox™, see
gather
(Parallel Computing Toolbox)for information about gatheringdistributed
andgpuArray
computations.
Extended Capabilities
Version History
Introduced in R2016b