Products & Services Solutions Academia Support User Community Company

Learn more about Parallel Computing Toolbox   

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);

See Also

speye MATLAB function reference page

codistributed.speye, distributed.eye

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS