multiply a column of a matrix by an expression
multiply matrix by an expression
mulcol(A, c, expr)
mulrow(A, r, expr)
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](..).
Download Help Document
What kind of issue would you like to report? (Optional)