User`s guide

11 Functions — Alphabetical List
11-34
codistributed.speye
Create codistributed sparse identity matrix
Syntax
CS = codistributed.speye(n)
CS = codistributed.speye(m, n)
CS = codistributed.speye([m, n])
CS = speye(n, codist)
CS = speye(m, n, codist)
CS = speye([m, n], codist)
Description
CS = codistributed.speye(n) creates an n-by-n sparse codistributed array of
underlying class double.
CS = codistributed.speye(m, n) or CS = codistributed.speye([m, n])
creates an m-by-n sparse codistributed array of underlying class double.
Optional arguments to codistributed.speye must be specified after the required
arguments, and in the following order:
codist — A codistributor object specifying the distribution scheme of the resulting
array. If omitted, the array is distributed using the default distribution scheme.
For information on constructing codistributor objects, see the reference pages for
codistributor1d and codistributor2dbc.
'noCommunication' — Specifies that no interworker communication is to be
performed when constructing the array, skipping some error checking steps.
CS = speye(n, codist) is the same as CS = codistributed.speye(n, codist).
You can also use the optional arguments with this syntax. To use the default distribution
scheme, specify a codistributor constructor without arguments. For example:
spmd
CS = codistributed.speye(8, codistributor1d());
end