300 Accelerating MATLAB
®
Performance
Indexing into a nondistributed array is straightforward: each dimension is indexed
within the range of 1 to the nal subscript given by MATLAB end keyword. Accordingly,
the length of any dimension is determined using either size or length function. In contrast,
for codistributed arrays, these values are not so easily obtainable since the index range
depends on the actual distribution scheme. For this purpose, MATLAB provides the glo-
balIndices function, which tells us the relationship between indices on a local part and the
corresponding index range in a given dimension on the distributed array.
906
6.1.4 Interactive Parallel Development with pmode
The pmode functionality is very similar to spmd, and there ...