construct a unit Vector - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Education : Student Package : Linear Algebra : Computation : Constructors : Student/LinearAlgebra/UnitVector

Student[LinearAlgebra][UnitVector] - construct a unit Vector

Calling Sequence

UnitVector[o](i, d, options)

Parameters

[o]

-

(optional) use either [row] or [column] to specify the orientation of the resulting Vector

i

-

positive integer; index of the nonzero entry

d

-

positive integer; dimension of the resulting Vector

options

-

(optional) parameters; for a complete list, see LinearAlgebra[UnitVector]

Description

• 

The UnitVector(i, d) command returns a d-dimensional Vector in which the ith entry is one and all other entries are zero.

• 

The UnitVector[row](i, d) command behaves like UnitVector(i, d) except that a row Vector is returned.  If the orientation option is omitted or if UnitVector[column](i, d) is used, a column Vector is returned.

Examples

withStudent[LinearAlgebra]:

UnitVector4,5

00010

(1)

UnitVectorrow1,3

100

(2)

See Also

LinearAlgebra[UnitVector], Student[LinearAlgebra]


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