Assume $c$ is a column vector. What mathematical operation or expression can produce a diagonal matrix with entries of that of $c$ in same order. Does such an expression exist?
Basically I know that the sum of entries of $c$ is zero. I want to write it in an matrix expression/equation. I am hoping if I get a diagonal matrix and then say trace of that matrix is zero.