MTM/eye - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : MTM/eye

MTM

  

eye

  

identity matrix

  

speye

  

sparse identity matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

eye()

eye(n)

eye(n,m)

eye(X)

speye()

speye(n)

speye(n,m)

speye(X)

Parameters

n, m

-

positive integers

X

-

list or array

Description

• 

The eye function returns a dense identity matrix with specified dimensions.

• 

The speye function returns a sparse identity matrix with specified dimensions.

• 

If n is an integer and m is omitted, the resulting matrix is square.

• 

If the input X is an array, its elements are used as the dimensions of the matrix.

Examples

withMTM:

eye4

1000010000100001

(1)

eye4,5

10000010000010000010

(2)

speye4

1000010000100001

(3)

speye4,5

10000010000010000010

(4)

See Also

IdentityMatrix

MTM[diag]