User`s guide

codistributed.speye
11-35
CS = speye(m, n, codist) and CS = speye([m, n], codist) are the same as
CS = codistributed.speye(m, n) and CS = codistributed.speye([m, n]),
respectively. You can also use the optional arguments with this syntax.
Note To create a sparse codistributed array of underlying class logical, first create an
array of underlying class double and then cast it using the logical function:
CLS = logical(speye(m, n, codistributor1d()))
Examples
With four workers,
spmd(4)
CS = speye(1000, codistributor())
end
creates a 1000-by-1000 sparse codistributed double array CS, distributed by its second
dimension (columns). Each worker contains a 1000-by-250 local piece of CS.
spmd(4)
codist = codistributor1d(2, 1:numlabs);
CS = speye(10, 10, codist);
end
creates a 10-by-10 sparse codistributed double array CS, distributed by its columns. Each
worker contains a 10-by-labindex local piece of CS.
See Also
speye | distributed.speye | sparse