linalg(deprecated)/extend - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/extend

linalg(deprecated)

  

extend

  

enlarge a matrix

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

extend(A, m, n, x)

extend(A, m, n)

Parameters

A

-

matrix

m, n

-

non-negative integers

x

-

(optional) an expression

Description

• 

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Matrix], instead.

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The call extend(A, m, n, x) returns a new matrix which is a copy of the matrix A with m additional rows and n additional columns. The new entries are initialized to x.

• 

If the optional fourth argument x is omitted, then the matrix is extended by m rows and n columns but the entries in those rows and columns are not assigned.

• 

The command with(linalg,extend) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding command LinearAlgebra[Matrix], instead.

withlinalg:

Amatrix2,2,1,2,3,4

A1234

(1)

extendA,1,1,0

120340000

(2)

See Also

linalg(deprecated)[augment]

linalg(deprecated)[copyinto]

linalg(deprecated)[stackmatrix]

LinearAlgebra