Matrix multiplication is not easy to understand.
threadreaderapp.com·16h
Preview
Report Post

Matrix multiplication is not easy to understand.

Even looking at the definition used to make me sweat, let alone trying to comprehend the pattern. Yet, there is a stunningly simple explanation behind it.

Let’s pull back the curtain! **

First, the raw definition.

This is how the product of A and B is given. Not the easiest (or most pleasant) to look at.

We are going to unwrap this. **

Here is a quick visualization before the technical details.

The element in the i-th row and j-th column of AB is the dot product of A’s i-th row and B’s j-th column. **

Now, let’s look at a special case: multiplying the matrix A with a (column) vector whose first component is 1, and the rest is 0.

Let’s name this special vector e₁.

Turns out that the product of A and e₁ is the first c…

Similar Posts

Loading similar posts...