construct a (block) diagonal Matrix - Maple Help

Online Help

All Products    Maple    MapleSim


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

Student[LinearAlgebra][DiagonalMatrix] - construct a (block) diagonal Matrix

Calling Sequence

DiagonalMatrix(V, options)

Parameters

V

-

Vector or list; diagonal entries

options

-

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

Description

• 

The DiagonalMatrix(V) command constructs a (block) diagonal Matrix  whose diagonal entries, starting from the upper-left corner, are the elements of V.

• 

If V is a Vector or a list of scalar values, then the blocks are 1x1 and DiagonalMatrix(V) constructs a diagonal Matrix.

• 

If V is a list [B1,B2,...,Bn] containing any non-scalar value, then the blocks are not necessarily 1x1 and DiagonalMatrix(V) builds a Matrix by placing each element, Bj, of V as an expanded block of entries, with each block placed immediately below and to the right of its predecessor. If the elements of V are all square (scalar values or square Matrices), a diagonal or block diagonal Matrix in the usual sense is returned.

• 

By using this command in conjunction with the JordanBlockMatrix command, you can create a Jordan Matrix.

Examples

withStudent[LinearAlgebra]:

L:=1,2|x,y,3,4,5|6,7

L:=1x2y,3,4657

(1)

DiagonalMatrixL

1x0002y000003000004600057

(2)

V:=1,2,3,4

V:=1234

(3)

DiagonalMatrixV

1000020000300004

(4)

See Also

LinearAlgebra[DiagonalMatrix], Student[LinearAlgebra], Student[LinearAlgebra][BandMatrix], Student[LinearAlgebra][JordanBlockMatrix], Student[LinearAlgebra][JordanForm]


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