Close
Close window
unit - 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


[フレーム] [フレーム]

The unit Indexing Function

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


Download Help Document

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