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

Online Help

All Products    Maple    MapleSim


The unit Indexing Function

 

Description

Examples

Description

• 

The unit indexing function can be used to construct 1-dimensional rtable objects of type Array or Vector.

• 

In the construction of a Vector, the unit[j] indexing function specifies a Vector which has the value 1 for entry j and the value 0 everywhere else.

  

The specification in the construction of a 1-dimensional Array is similar.

• 

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

• 

Under normal circumstances, no storage is allocated for the entries of an object constructed by using the unit indexing function.

Examples

AArrayunit2,1..3

A010

(1)

VVector4,shape=unit3

V0010

(2)

V23

Error, unit vector can only have one non-zero entry

See Also

Array

LinearAlgebra[UnitVector]

rtable

rtable_indexfcn

Vector