linalg(deprecated)
mulcol
multiply a column of a matrix by an expression
mulrow
multiply matrix by an expression
Calling Sequence
Parameters
Description
Examples
mulcol(A, c, expr)
mulrow(A, r, expr)
A
-
matrix
r, c
positive integers
expr
scalar expression
Important: The linalg package has been deprecated. Use the superseding command, LinearAlgebra[Multiply], instead.
- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.
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](..).
with⁡linalg:
A≔matrix⁡1,2,3,4
A≔1234
mulrow⁡A,2,2
1268
mulcol⁡A,2,x
12⁢x34⁢x
See Also
LinearAlgebra
Download Help Document