linalg(deprecated)/innerprod - 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)/innerprod

linalg(deprecated)

  

innerprod

  

calculate the inner product

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

innerprod(u, A1, A2,..., An, v)

Parameters

u, v

-

vectors

A[1], ..., A[n]

-

matrices

Description

• 

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

  

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

• 

The function innerprod calculates the inner product of a sequence of vectors and matrices. The dimension of each matrix and vector must be compatible for multiplication in the order given.

• 

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

Examples

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

> 

with⁡linalg:

> 

u≔vector⁡2,1,2

u≔12

(1)
> 

v≔vector⁡3,1,2,3

v≔123

(2)
> 

A≔matrix⁡2,3,1,1,1,2,2,2

A≔111222

(3)
> 

innerprod⁡u,A,v

30

(4)
> 

w≔vector⁡3,3,2,1

w≔321

(5)
> 

innerprod⁡v,w

10

(6)

See Also

linalg(deprecated)[crossprod]

linalg(deprecated)[dotprod]

LinearAlgebra