Let $A=\operatorname{diag}(2,3,4)$ and $B=\begin{bmatrix}1&2&0\\0&1&1\\1&0&1\end{bmatrix}$. Then $AB=\begin{bmatrix}2&4&0\\0&3&3\\4&0&4\end{bmatrix}$. Left multiplication by a diagonal matrix scales rows. In contrast, $BA$ scales the columns of $B$.
Parents
Like how this is organised?
Build your own knowledge tree on knowen.md: notes, decisions and tasks in one connected markdown graph, shared with your team and your AI agents.

