The constant Indexing Function - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Data Types : Rtables, Arrays, Matrices, and Vectors : Indexing Functions : indexfcn/constant

The constant Indexing Function

 

Description

Examples

Description

• 

The constant indexing function can be used to construct rtable objects of type Array, Matrix, or Vector.

• 

In the construction of a Matrix, the constant[x] indexing function specifies a Matrix whose entries all have the value x.

• 

The specification is the same in the construction of Arrays and Vectors.

• 

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

• 

Under normal circumstances, Maple only stores the value of x. To override this, specify a storage value.

Examples

VVector3,shape=constant[2]

V:=222

(1)

MMatrix1..2,1..2,shape=constant[3]

M:=3333

(2)

See Also

Array

LinearAlgebra[ConstantMatrix]

LinearAlgebra[ConstantVector]

Matrix

rtable

rtable_indexfcn

storage

Vector

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam