Sparse Matrix Multiplication

I'm always getting confused about how matrix multiplication works. Here, you can try it interactively:





(null)

Note that matrix dimensions are entered as rows x columns (height x width), and the element indices are also written like this. Click source matrix elements to toggle between zero (white) and nonzero (orange).