Create distributed sparse identity matrix
DS = distributed.speye(n)
DS = distributed.speye(m,n)
DS
= distributed.speye([m,n])
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.
Create a distributed 1000-by-1000 sparse identity matrix:
N = 1000; DS = distributed.speye(N);