Review of Matrix Multiplication

Review of Matrix Multiplication
Review of Matrix Multiplication

A Review of Matrix Multiplication


Rules of Matrix Multiplication
  • Inner dimensions must be the same
  • Dimension of resulting matrix are outer most dimensions of two multiplied matrices
  • Resulting elements are the dot product of the rows of first matrix with the columns of the second

Try:
>> a  = [  1 2 3; 4 5 6]
a =
        1      2      3
        4      5      6
>>  b= ones (3,3)
b =
         1      1      1
         1      1      1
         1      1      1
>>  c= a*b
c  =
          6       6       6
         15      15      15


Sarah Jenkins
Author

Sarah Jenkins

Sarah Jenkins is a veteran tech journalist with over 12 years of experience covering artificial intelligence, mobile innovations, and digital ethics. Her insights have appeared in leading technology publications worldwide.