linalg(deprecated)/addrow - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : linalg(deprecated)/addrow

linalg(deprecated)

  

addrow

  

form linear combinations of matrix rows

  

addcol

  

form linear combinations of matrix columns

 

Calling Sequence

Parameters

Description

Examples

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

• 

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

  

- For information on migrating linalg code to the new packages, see examples/LinearAlgebraMigration.

• 

The call addrow(A, r1, r2, m) returns a copy of the matrix A in which row r2 is replaced by mrowA,r1+rowA,r2. Similarly addcol(A, c1, c2, m) returns a copy of the matrix A in which column c2 is replaced by mcolA,c1+colA,c2.

  

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

Examples

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

The linalg package has been deprecated. Use the superseding packages, LinearAlgebra and VectorCalculus, instead.

withlinalg:

aarray1..3,1..3,1,2,3,2,3,4,3,4,5

a123234345

(1)

addrowa,1,2,10

123122334345

(2)

addcola,1,2,x

1x+2322x+3433x+45

(3)

See Also

linalg(deprecated)[row]

LinearAlgebra