06. Matrix multiplication, 3
06. Matrix multiplication, 3
Multiplying bigger matrices
(0.00) Suppose is an -by- matrix ( rows and columns) and is an -by- matrix ( rows and columns). To save our sanity, suppose , , :
(2.36) I claim that there's an obvious way to define given everything we've seen so far.
-
To get the top left entry of , we multiply the top row of into the first column of , giving .
-
To get the next entry along, we multiply the top row of into the second column of .
-
We keep going: to get the entry of in the th row and the th column, we multiply the th row of into the th column of .
This means we end up with rows (same number as ) and columns (same number as ).
(4.38) You might ask: what happens if is -by- and is -by- but ? For example: doesn't make any sense: the rows of have length 2 and the columns of have height 1, so we can't multiply rows into columns.
(6.13) This is reasonable: defines a transformation and defines a transformation , so while you can define , you have no way of composing the transformations as (the domain of is not the target of ).
(8.15) As an exercise, do the following multiplications: (see the video for solutions).