linalg[addrow] - form linear combinations of matrix rows
linalg[addcol] - form linear combinations of matrix columns
|
Calling Sequence
|
|
addrow(A, r1, r2, m)
addcol(A, c1, c2, m)
|
|
Parameters
|
|
A
|
-
|
matrix
|
r1, r2, c1, c2
|
-
|
integers; row (column) indices
|
m
|
-
|
a scalar expression
|
|
|
|
|
Description
|
|
•
|
The call addrow(A, r1, r2, m) returns a copy of the matrix A in which row r2 is replaced by . Similarly addcol(A, c1, c2, m) returns a copy of the matrix A in which column c2 is replaced by .
|
|
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](..).
|
|
|
Download Help Document
Was this information helpful?