- #1
- 1,010
- 11
Perhaps a silly question. I have a vector:
[tex]a=[a_1 \ a_2 \ a_3 \ ...\ a_n]^T[/tex]
that I want to turn into a diagonal matrix. Is there an elegant way to represent this? I thought maybe something like:
[tex]a^TI[/tex]
would do, but it doesn't. I suppose I can use the kronecker delta and subscript form:
[tex]b_{ij} = \delta_{ij}a_i[/tex]
but how would this be done in matrix form?
[tex]a=[a_1 \ a_2 \ a_3 \ ...\ a_n]^T[/tex]
that I want to turn into a diagonal matrix. Is there an elegant way to represent this? I thought maybe something like:
[tex]a^TI[/tex]
would do, but it doesn't. I suppose I can use the kronecker delta and subscript form:
[tex]b_{ij} = \delta_{ij}a_i[/tex]
but how would this be done in matrix form?