User`s guide

11 Functions — Alphabetical List
11-26
codistributed.build
Create codistributed array from distributed data
Syntax
D = codistributed.build(L, codist)
D = codistributed.build(L, codist, 'noCommunication')
Description
D = codistributed.build(L, codist) forms a codistributed array with
getLocalPart(D) = L. The codistributed array D is created as if you had combined
all copies of the local array L. The distribution scheme is specified by codist. Global
error checking ensures that the local parts conform with the specified distribution
scheme. For information on constructing codistributor objects, see the reference pages for
codistributor1d and codistributor2dbc.
D = codistributed.build(L, codist, 'noCommunication') builds a
codistributed array, without performing any interworker communications for error
checking.
codist must be complete, which you can check by calling codist.isComplete(). The
requirements on the size and structure of the local part L depend on the class of codist.
For the 1-D and 2-D block-cyclic codistributors, L must have the same class and sparsity
on all workers. Furthermore, the local part L must represent the region described by the
globalIndices method on codist.
Examples
Create a codistributed array of size 1001-by-1001 such that column ii contains the value
ii.
spmd
N = 1001;
globalSize = [N, N];