Perhaps a silly question. I have a vector:
a=[a_1 \ a_2 \ a_3 \ ...\ a_n]^T
that I want to turn into a diagonal matrix. Is there an elegant way to represent this? I thought maybe something like:
a^TI
would do, but it doesn't. I suppose I can use the kronecker delta and subscript...
I have been thinking about this for a week and I simply can't get anywhere.
consider a 4x4 diagonal matrix such that if a11 > a22 > a33 > a44, (0's everywhere else)
then it is similar to another matrix with the same diagonal but 0's in upper triangular part an any numbers in the lower...