identity - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


The identity Indexing Function

 

Description

Examples

Description

• 

The identity indexing function can be used to construct tables and rtable objects of type Array or Matrix.

• 

In general, the identity indexing function returns 1 for all entries whose indices are identical, and returns 0 otherwise.

• 

If an object is defined by using the identity indexing function, its elements cannot be reassigned.

  

In the case of a table, if you know that the elements may be reassigned, use the sparse indexing function instead.

• 

Under normal circumstances, no storage is allocated for the entries of an object constructed by using the identity indexing function. To override this, specify a storage value.

Examples

MMatrix3,3,shape=identity

M100010001

(1)

M1,23

Error, invalid assignment of non-zero to identity off-diagonal

See Also

Array

indexfcn

Matrix

rtable

rtable_indexfcn

sparse

storage

table