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.
a ≔ array⁡1..3,1..3,1,2,3,2,3,4,3,4,5
Download Help Document
What kind of issue would you like to report? (Optional)
Thank you for submitting feedback on this help document. Your feedback will be used
to improve Maple's help in the future.