form linear combinations of matrix rows
form linear combinations of matrix columns
addrow(A, r1, r2, m)
addcol(A, c1, c2, m)
r1, r2, c1, c2
integers; row (column) indices
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.
Download Help Document
What kind of issue would you like to report? (Optional)