linalg(deprecated)/multiply - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


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

linalg(deprecated)

  

multiply

  

matrix-matrix or matrix-vector multiplication

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

multiply(A, B, ... )

Parameters

A, B, ...

-

matrices

Description

• 

Important: The linalg package has been deprecated. Use the superseding commands, LinearAlgebra[MatrixMatrixMultiply] and LinearAlgebra[MatrixVectorMultiply], instead.

  

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

• 

The function multiply(A, B,...) calculates the matrix product A B ... .  The dimensions of each matrix must be consistent with the rules of matrix multiplication.

• 

The call multiply(A, v), for a matrix A and vector v, calculates the matrix-vector product A v. The number of entries in v must be equal to the number of columns of A. Thus if A is an n x m matrix, vectdim(v) must be m. The result is a vector with n entries.

• 

The evalm command provides an easy method of accessing multiply.

• 

The command with(linalg,multiply) allows the use of the abbreviated form of this command.

Examples

Important: The linalg package has been deprecated. Use the superseding commands, LinearAlgebra[MatrixMatrixMultiply] and LinearAlgebra[MatrixVectorMultiply], instead.

> 

with⁡linalg:

> 

A≔array⁡1,2,3,4:

> 

B≔array⁡0,1,1,0:

> 

C≔array⁡1,2,4,5:

> 

multiply⁡A,B,C

691623

(1)
> 

v≔vector⁡3,4:

> 

multiply⁡A,v

1125

(2)
> 

multiply⁡v,transpose⁡v

9121216

(3)

See Also

linalg(deprecated)[innerprod]

LinearAlgebra