Close
Close window
MTM/eye - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


Home : Support : Online Help : MTM/eye
[フレーム] [フレーム]

MTM

eye

identity matrix

speye

sparse identity matrix

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)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /