Convert distributed array to equivalent tall array
If the distribution of
D is in the first dimension, then
T has the same distribution. If the distribution of
D is in any other dimension or uses a 2-D block-cyclic codistributor
T contains a redistribution of the underlying data in the first
Convert Distributed Arrays to Tall Arrays
Create a distributed array, and then convert it into a tall array.
First, create a distributed array directly on the workers and then convert it into the equivalent tall array.
N = 1000; dX = distributed.colon(1, N)';
Starting parallel pool (parpool) using the 'Processes' profile ... Connected to parallel pool with 6 workers.
tX = tall(dX);
Calculate the sum of the elements of the tall array, and retrieve the value back to the local workspace.
Evaluating tall expression using the Parallel Pool 'Processes': Evaluation completed in 5.2 sec
ans = 500500
D — Distributed array to convert
Distributed array to convert, specified as a distributed array stored in parts on the workers of the open parallel pool.
Introduced in R2023b