Matrix Multiplication
Check Dimensions
#
- Inner two numbers must match
- Outer two numbers = answer’s dim
(answer’s dimensions2×must match!3)×(3×2)Multiply
#
Dot product each row in the 1st matrix with every column in the 2nd matrix.
First row, first column.
[142536]×⎣⎢⎡791181012⎦⎥⎤=[58 ]
First row, second column.
[142536]×⎣⎢⎡791181012⎦⎥⎤=[58 64]
Second row, first column.
[142536]×⎣⎢⎡791181012⎦⎥⎤=[5813964]
Second row, second column.
[142536]×⎣⎢⎡791181012⎦⎥⎤=[5813964154]
Note: Dot product of red row and blue col = purple num
July 25, 2020