distributed.speye
Create distributed sparse identity matrix
Syntax
DS = distributed.speye(n)
DS = distributed.speye(m,n)
DS
= distributed.speye([m,n])
Description
DS = distributed.speye(n)
creates an n
-by-n
sparse distributed array of underlying class double.
DS = distributed.speye(m,n)
or DS
= distributed.speye([m,n])
creates an m
-by-n
sparse distributed array of underlying class double.
Examples
Create a distributed 1000-by-1000 sparse identity matrix:
N = 1000; DS = distributed.speye(N);
Version History
Introduced in R2009b