linalg(deprecated)
extend
enlarge a matrix
Calling Sequence
Parameters
Description
Examples
extend(A, m, n, x)
extend(A, m, n)
A
-
matrix
m, n
non-negative integers
x
(optional) an expression
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.
with⁡linalg:
A≔matrix⁡2,2,1,2,3,4
A≔1234
extend⁡A,1,1,0
120340000
See Also
linalg(deprecated)[augment]
linalg(deprecated)[copyinto]
linalg(deprecated)[stackmatrix]
LinearAlgebra
Download Help Document