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

withlinalg:

uvector2,1,2

u12

(1)

vvector3,1,2,3

v123

(2)

Amatrix2,3,1,1,1,2,2,2

A111222

(3)

innerprodu,A,v

30

(4)

wvector3,3,2,1

w321

(5)

innerprodv,w

10

(6)

See Also

linalg(deprecated)[crossprod]

linalg(deprecated)[dotprod]

LinearAlgebra