Computer Science - Matrix

654 Views Asked by At

enter image description here

I would like to know how exactly this works. I watched a khan academy video: "Multiplying matrices" but in this case he would've done B*A and had 2 columns, why does this one have 3 columns and 3 rows??

3

There are 3 best solutions below

5
On

the number of rows in the product is equal to the number of rows in the first factor and the number of columns in the product is equal to the number of columns in the second factor.

1
On

Going off the video: your answer will be a $3 \times 3$ matrix. How can you tell this before you start doing the multiplication? Once you know that, follow the process that he starts at 2:35. For example, the upper-left entry is $$ 1 \cdot 6 + 2 \cdot (-2) = 2 $$

0
On

A is 3 × 2 matrix.

B is 2 × 3 matrix.

Number of columns in A = Number of rows in B

So multiplication possible.

Resultant matrix C = Number of rows in A × Number of columns in B

We get C matrix 3 × 3.