Is there a simple notation to transform a column vector to a diagonal matrix with only matrix operations?
Remember to vote up questions/answers you find interesting or helpful (requires 15 reputation points)
|
0
|
||||||||||||||||||||||
|
closed as not a real question by Theo Johnson-Freyd, Yemon Choi, Denis Serre, David Roberts, Andrew Stacey Feb 18 2011 at 8:07 |
|
2
|
I'm not sure whether it answers your question, but here is a "matrix procedure" to transform the column vector $v$ into a diagonal matrix $D$: Let $E_i$ be the $n \times n$ matrix with a $1$ on position $(i,i)$ and zeros everywhere else; similarly, let $e_i$ be the $1 \times n$ row matrix with a $1$ on position $(1,i)$ and zeros everywhere else. Then $$D = \sum_{i=1}^n E_i v e_i .$$ |
||
|
|

