Consider a possibly-rectangular (only the rectangular case is of real interest) matrix $M$, and two diagonal matrices $D_1, D_2$.
We want $$D_1 M+M D_2=0$$ Clearly $D_1=0,D_2=0$ is sufficient.
But is is not always necessary:
- if $M=0$, any $D_1, D_2$ will do.
- If $M$ is diagonal, $D_1=-D_2$ suffices.
What conditions must $M$ obey for the trivial solution $D_1=0,D_2=0$ to be the only solution? Does it suffice that $M$ does not commute with diagonal matrices?