linalg(deprecated)
addrow
form linear combinations of matrix rows
addcol
form linear combinations of matrix columns
Calling Sequence
Parameters
Description
Examples
addrow(A, r1, r2, m)
addcol(A, c1, c2, m)
A
-
matrix
r1, r2, c1, c2
integers; row (column) indices
m
a scalar expression
Important: The linalg package has been deprecated. Use the superseding command, LinearAlgebra[MatrixAdd], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
The call addrow(A, r1, r2, m) returns a copy of the matrix A in which row r2 is replaced by m⁢row⁡A,r1+row⁡A,r2. Similarly addcol(A, c1, c2, m) returns a copy of the matrix A in which column c2 is replaced by m⁢col⁡A,c1+col⁡A,c2.
These functions are part of the linalg package, and so can be used in the form addrow(..) only after performing the command with(linalg) or with(linalg,addrow). These functions can always be accessed in the long form linalg[addrow](..).
The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.
with⁡linalg:
a≔array⁡1..3,1..3,1,2,3,2,3,4,3,4,5
a≔123234345
addrow⁡a,1,2,10
123122334345
addcol⁡a,1,2,−x
1−x+232−2⁢x+343−3⁢x+45
See Also
linalg(deprecated)[row]
LinearAlgebra
Download Help Document