A Chook’s-Eye View of Linear Algebra: Matrix Chain Multiplication | by Rohit Pandey | Nov, 2024

Linear algebra is the spine of AI. Matrix multiplication is the elemental operation of linear algebra. What if there’s a entire chain?

Picture created with midjourney

That is the fourth chapter of the in-progress ebook on linear algebra. The desk of contents thus far:

We lined matrix multiplication in chapter 3 and why it’s outlined the best way it’s. We additionally visualized the operation in 5 other ways. It was value spending a chapter on this crucial operation since it’s so basic in so many fields.

And the place there are two matrices, there are quickly many. One of many matrices in a matrix multiplication will usually cut up into two and so forth till we get a complete chain of matrices to be multiplied collectively. And in contrast to with two matrices, the place there is just one, it turns…