 linalg(deprecated)/extend - Maple Help

linalg(deprecated)

 extend
 enlarge a matrix 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.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $A≔\mathrm{matrix}\left(2,2,\left[1,2,3,4\right]\right)$
 ${A}{≔}\left[\begin{array}{cc}{1}& {2}\\ {3}& {4}\end{array}\right]$ (1)
 > $\mathrm{extend}\left(A,1,1,0\right)$
 $\left[\begin{array}{ccc}{1}& {2}& {0}\\ {3}& {4}& {0}\\ {0}& {0}& {0}\end{array}\right]$ (2)