The unit Indexing Function
Description
Examples
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.
A≔Array⁡unit2,1..3
A≔010
V≔Vector⁡4,shape=unit3
V≔0010
V2≔3
Error, unit vector can only have one non-zero entry
See Also
Array
LinearAlgebra[UnitVector]
rtable
rtable_indexfcn
Vector
Download Help Document