linalg[mulcol] - multiply a column of a matrix by an expression
linalg[mulrow] - multiply matrix by an expression
|
Calling Sequence
|
|
mulcol(A, c, expr)
mulrow(A, r, expr)
|
|
Parameters
|
|
A
|
-
|
matrix
|
r, c
|
-
|
positive integers
|
expr
|
-
|
scalar expression
|
|
|
|
|
Description
|
|
•
|
The call mulcol(A, c, expr) returns a matrix which has the same entries as A with the cth column multiplied by expr. Likewise mulrow(A, r, expr) returns a matrix with the rth row multiplied by expr.
|
|
These functions are part of the linalg package, and so can be used in the form mulrow(..) only after performing the command with(linalg) or with(linalg, mulrow). These functions can always be accessed in the long form linalg[mulrow](..).
|
|
|
Download Help Document
Was this information helpful?