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

Online Help

All Products    Maple    MapleSim


The scalar Indexing Function

 

Description

Examples

Description

• 

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

• 

In the construction of a Matrix, the scalar[x] indexing function specifies a Matrix whose entries have the value x on the main diagonal and the value 0 everywhere else.

  

The specification is the same in the construction of an Array.

• 

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

• 

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

Examples

VVector5,shape=scalar2,3

V03000

(1)

MMatrix1..4,1..4,shape=scalar3

M3000030000300003

(2)

See Also

Array

LinearAlgebra[ScalarMatrix]

LinearAlgebra[ScalarVector]

Matrix

rtable

rtable_indexfcn

storage

Vector