Products & Services Solutions Academia Support User Community Company

Learn more about Parallel Computing Toolbox   

distributed.eye - Create distributed identity matrix

Syntax

D = distributed.eye(n)
D = distributed.eye(m, n)
D = distributed.eye([m, n])
D = distributed.eye(..., classname)

Description

D = distributed.eye(n) creates an n-by-n distributed identity matrix of underlying class double.

D = distributed.eye(m, n) or D = distributed.eye([m, n]) creates an m-by-n distributed matrix of underlying class double with 1's on the diagonal and 0's elsewhere.

D = distributed.eye(..., classname) specifies the class of the distributed array D. Valid choices are the same as for the regular eye function: 'double' (the default), 'single', 'int8', 'uint8', 'int16', 'uint16', 'int32', 'uint32', 'int64', and 'uint64'.

Examples

Create a 1000-by-1000 distributed identity matrix of class double:

D = distributed.eye(1000)

See Also

eye MATLAB function reference page

codistributed.eye, distributed.ones, distributed.speye, distributed.zeros

  


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