codistributor2dbc
2-D block-cyclic distribution scheme for codistributed array
Description
A codistributor2dbc object defines the two-dimensional
block-cyclic distribution scheme for a codistributed array object. The 2-D block-cyclic codistributor can distribute
only two-dimensional matrices. It distributes matrices along two subscripts over a rectangular
computational grid of workers in a blocked, cyclic manner. For a complete description of 2-D
block-cyclic distribution, default parameters, and the relationship between block size and
worker grid, see 2-Dimensional Distribution. The parallel matrix computation
software library ScaLAPACK uses the 2-D block-cyclic codistributor.
Creation
Syntax
Description
creates a
two-dimensional block-cyclic codist = codistributor2dbccodistributed2dbc codistributor object
using the default worker grid and block size.
creates a two-dimensional block-cyclic codistributor object with a specified
codist = codistributor2dbc(WorkerGrid)WorkerGrid value and default block size.
creates a two-dimensional block-cyclic codistributor object with the specified
codist = codistributor2dbc(WorkerGrid,BlockSize)WorkerGrid and BlockSize values.
also specifies the codist = codistributor2dbc(WorkerGrid,BlockSize,Orientation)Orientation property.
The resulting codistributor of any of the above syntaxes is incomplete because its global size is not specified. Use a codistributor constructed this way as an argument to other functions as a template codistributor when creating codistributed arrays.
creates a codistributor object with the global size codist = codistributor2dbc(WorkerGrid,BlockSize,Orientation,gsize)gsize.
The resulting codistributor object is complete. Use a codistributor constructed this
way to build a codistributed array from its local parts with the codistributed.build function. To use the default values for each argument,
specify WorkerGrid as
codistributor2dbc.defaultWorkerGrid, BlockSize
as codistributor2dbc.defaultBlockSize, and
Orientation as
codistributor2dbc.defaultOrientation.
Input Arguments
Properties
Object Functions
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 |
codistributor2dbc.defaultWorkerGrid | Default computational grid for 2-D block-cyclic distributed arrays |
eye | Create codistributed identity matrix |
false | Create codistributed array of logical 0 (false) |
globalIndices | Global indices for local part of codistributed array |
Inf | Create codistributed array of all Inf values |
isComplete | True if codistributor object is complete |
NaN | Create codistributed array of all NaN values |
ones | Create codistributed array of all ones |
rand | Create codistributed array of uniformly distributed random numbers |
randn | Create codistributed array of normally distributed random numbers |
sparse | Create codistributed sparse matrix |
true | Create codistributed array of logical 1 (true) |
zeros | Create codistributed array of all zeros |
Examples
Version History
Introduced in R2009b
