Access elements of arrays distributed among workers in parallel pool
codistributed
, codistributed.build
You can also create a codistributed array explicitly from spmd code or a communicating job task with any of several MATLAB functions.
|
|
|
|
| codistributed.cell |
| codistributed.spalloc |
| codistributed.speye |
| codistributed.sprand |
| codistributed.sprandn |
|
Arrays partitioned among the workers in a pool, are accessible from the workers as codistributed array objects.
Codistributed arrays on workers that you create inside spmd
statements or from within task
functions of communicating jobs can be accessed as distributed arrays
on the client.
Inf | Array of infinity |
classUnderlying | (Not recommended) Class of elements within gpuArray or distributed array |
codistributed.cell | Create codistributed cell array |
codistributed.colon | Distributed colon operation |
codistributed.spalloc | Allocate space for sparse codistributed matrix |
codistributed.speye | Create codistributed sparse identity matrix |
codistributed.sprand | Create codistributed sparse array of uniformly distributed pseudo-random values |
codistributed.sprandn | Create codistributed sparse array of uniformly distributed pseudo-random values |
eye | Identity matrix |
false | Array of logical 0 (false) |
gather | Transfer distributed array or gpuArray to local workspace |
getCodistributor | Codistributor object for existing codistributed array |
getLocalPart | Local portion of codistributed array |
globalIndices | Global indices for local part of codistributed array |
isaUnderlying | (Not recommended) True if distributed array's underlying elements are of specified class |
iscodistributed | True for codistributed array |
rand | Array of rand values |
redistribute | Redistribute codistributed array with another distribution scheme |
sparse | Create sparse distributed or codistributed matrix |
true | Array of logical 1 (true) |
The methods for codistributed arrays are too numerous to list here. Most resemble and behave the same as built-in MATLAB functions. See Run MATLAB Functions with Distributed Arrays.
Also among the methods there are several for examining the characteristics of the array itself. Most behave like the MATLAB functions of the same name:
Function | Description |
---|---|
iscodistributed | Determine if array is codistributed |
isreal | Determine if array elements are real |
isUnderlyingType | Determine if underlying data in the array is of specified type |
length | Length of vector or largest array dimension |
ndims | Number of dimensions in the array |
size | Size of array dimensions |
underlyingType | Class (data type) of the underlying data in the array |
distributed
| gather
| getLocalPart
| parpool
| spmd