ELI5: Explain Like I'm 5

Matrix multiplication algorithm

Imagine you have a bag of marbles with different numbers on them, and you have two big bowls: bowl A and bowl B. Bowl A has multiple slots labeled with numbers, and bowl B has multiple slots labeled with letters.

To multiply the matrices (big tables of numbers), you need to take one row from bowl A and one column from bowl B. You then multiply the numbers in the row with the numbers in the column and add the results together.

For example, if you take the row with the numbers 2, 5, and 9 from bowl A and the column with the letters A, B, and C from bowl B, you would multiply 2 with the number in slot A, 5 with the number in slot B, and 9 with the number in slot C. You would then add the three results together to get a final number.

You repeat this process for all the rows in bowl A and all the columns in bowl B until you have multiplied all the numbers together. The result is a new matrix with the same number of rows as bowl A and the same number of columns as bowl B.

This process may seem long and complicated, especially if there are many numbers in each bowl, but with the help of a computer, it can be done quickly and accurately.