Matrix multiplication

Matrix multiplication is defined by Cmn = AmpBpn. Notice that matrix multiplication is only possible if the number of columns in the first operand is equal to the number of rows of the second operand. The general term in the product, cij, is defined as

p

cij = aik bkj , for i = 1,2, , m; j = 1,2, , n.

k =1

Matrix multiplication is not commutative, i.e., in general, AB BA. Furthermore, one of the multiplications may not even exist. The following screen shots show the results of multiplications of the matrices that we stored earlier:

Term-by-term multiplication

Term-by-term multiplication of two matrices of the same dimensions is possible through the use of function HADAMARD. The result is, of course, another matrix of the same dimensions. This function is available through Function

catalog (

), or through the MATRICES/OPERATIONS sub-menu

(

 

). Applications of function HADAMARD are presented next:

 

 

 

 

 

 

 

 

„Ø

 

 

 

 

 

 

 

 

 

 

 

‚N

 

 

 

Page 9-5

Page 122
Image 122
HP 49g manual Cij = aik ⋅ bkj , for i = 1,2, , m j = 1,2, , n