@2ck Hadamard produce isnt really sufficient if what you are multiplying against isnt the same dimensions as the matrix you want to diagonalize. So that still isnt sufficient for me. In my case I had a Nx1 I needed to multiple against a 3x2. I attached the example.
@khird
Ahh cool, never saw diag universally defined before. I usually just wind up defining it myself.
@2ck