[HW] matrix multiplication: In this problem, the multiplication of two matrices
is introduced. Only the case of square matrices of equal dimensions is discussed.
A matrix is two dimensional array of numbers. Consider matrix A
A=[a11 a12 a13
a21 a22 a23
a31 a32 a33]
and matrix B
B=[b11 b12 b13
b21 b22 b23
b31 b32 b33]
Matrix C is obtained by matrix multiplication of matrix A and matrix B
C=AB=[c11 c12 c13
c21 c22 c23
c31 c32 c33]
where entry cij of matrix C is obtained with
cij=Σ
k=1
n
aik bkj=ai1b1jai2b2jai3b3j and n = 3
cij is the known as the dotproduct
of row i of matrix A and column j of matrix B.
The entries cij of matrix C are obtained for all possible rows i of matrix A and
columns j of matrix B.
Note that matrix multiplication is anticommutative.
This means that the order of
matrices in matrix multiplication does matter. In general
AB≠B A
02/18/08
Example:
A=[1 −5 6
3 5 −7
9 8 4 ] B=[ 2 −3 4
−8 7 5
6 1 9]
C=AB=[78 −32 33
−76 19 −26
−22 33 1
C Help with Hw?
dum dum diddle de dum dum du-um du-um. dum dum diddle de dum dum du-um du-um. LOVE THAT FILM!!!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment