linalg(deprecated)/mulcol - Maple Help

linalg(deprecated)

 mulcol
 multiply a column of a matrix by an expression
 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

 • 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](..).

Examples

Important: The linalg package has been deprecated. Use the superseding command, LinearAlgebra[Multiply], instead.

 > $\mathrm{with}\left(\mathrm{linalg}\right):$
 > $A≔\mathrm{matrix}\left(\left[\left[1,2\right],\left[3,4\right]\right]\right)$
 ${A}{≔}\left[\begin{array}{cc}{1}& {2}\\ {3}& {4}\end{array}\right]$ (1)
 > $\mathrm{mulrow}\left(A,2,2\right)$
 $\left[\begin{array}{cc}{1}& {2}\\ {6}& {8}\end{array}\right]$ (2)
 > $\mathrm{mulcol}\left(A,2,x\right)$
 $\left[\begin{array}{cc}{1}& {2}{}{x}\\ {3}& {4}{}{x}\end{array}\right]$ (3)