codistributed
Access elements of arrays distributed among workers in parallel pool
Constructor
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.
Description
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.
Methods
Inf | Create codistributed array of all Inf values |
NaN | Create codistributed array of all NaN values |
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 normally distributed pseudo-random values |
eye | Create codistributed identity matrix |
false | Create codistributed 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 |
ones | Create codistributed array of all ones |
rand | Create codistributed array of uniformly distributed random numbers |
randi | Create codistributed array of uniformly distributed random integers |
randn | Create codistributed array of normally distributed random numbers |
redistribute | Redistribute codistributed array with another distribution scheme |
sparse | Create codistributed sparse matrix |
true | Create codistributed array of logical 1 (true) |
zeros | Create codistributed array of all zeros |
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 |
Version History
Introduced in R2008b