Matrix-Matrix Multiply - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


LinearAlgebra[Generic]

  

MatrixMatrixMultiply

  

compute Matrix-Matrix product

  

MatrixVectorMultiply

  

compute Matrix-Vector product

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

MatrixMatrixMultiply[R](A,B)

MatrixVectorMultiply[R](A,v)

Parameters

R

-

the domain of computation

A,B

-

matrices of values in R

v

-

Vector of values in R

Description

• 

The (indexed) parameter R, which specifies the domain of computation, a commutative ring, must be a Maple table/module which has the following values/exports:

  

R[`0`] : a constant for the zero of the ring R

  

R[`1`] : a constant for the (multiplicative) identity of R

  

R[`+`] : a procedure for adding elements of R (nary)

  

R[`-`] : a procedure for negating and subtracting elements of R (unary and binary)

  

R[`*`] : a procedure for multiplying elements of R (binary and commutative)

  

R[`=`] : a boolean procedure for testing if two elements of R are equal

• 

The parameters A, B, and v must have compatible dimensions for the product.

Examples

withLinearAlgebraGeneric:

Z`0`,Z`1`,Z`+`,Z`-`,Z`*`,Z`=`0,1,`+`,`-`,`*`,`=`

Z0,Z1,Z`+`,Z`-`,Z`*`,Z`=`0,1,`+`,`-`,`*`,`=`

(1)

AMatrix2,1,4,3,2,1,0,0,5

A214321005

(2)

BMatrix1,2,3,2,1,2,3,2,1

B123212321

(3)

MatrixMatrixMultiplyZA,B

16131210101415105

(4)

vVector1,2,3

v123

(5)

MatrixVectorMultiplyZA,v

161015

(6)

See Also

LinearAlgebra[Generic]

LinearAlgebra[MatrixMatrixMultiply]

LinearAlgebra[MatrixVectorMultiply]