User`s guide

globalIndices
11-123
globalIndices
Global indices for local part of codistributed array
Syntax
K = globalIndices(C,dim)
K = globalIndices(C,dim,lab)
[E,F] = globalIndices(C,dim)
[E,F] = globalIndices(C,dim,lab)
K = globalIndices(codist,dim,lab)
[E,F] = globalIndices(codist,dim,lab)
Description
globalIndices tells you the relationship between indices on a local part and the
corresponding index range in a given dimension on the codistributed array. The
globalIndices method on a codistributor object allows you to get this relationship
without actually creating the array.
K = globalIndices(C,dim) or K = globalIndices(C,dim,lab) returns a vector
K so that getLocalPart(C) = C(...,K,...) in the specified dimension dim of
codistributed array C on the specified worker. If the lab argument is omitted, the default
is labindex.
[E,F] = globalIndices(C,dim) or [E,F] = globalIndices(C,dim,lab) returns
two integers E and F so that getLocalPart(C) = C(...,E:F,...) of codistributed
array C in the specified dimension dim on the specified worker. If the lab argument is
omitted, the default is labindex.
K = globalIndices(codist,dim,lab) is the same as K =
globalIndices(C,dim,lab), where codist is the codistributor to be used for C,
or codist = getCodistributor(C). This allows you to get the global indices for a
codistributed array without having to create the array itself.
[E,F] = globalIndices(codist,dim,lab) is the same as [E,F] =
globalIndices(C,dim,lab), where codist is the codistributor to be used for C,
or codist = getCodistributor(C). This allows you to get the global indices for a
codistributed array without having to create the array itself.