Diagonal matrix: Difference between revisions

Content deleted Content added
Undid revision 1137588578 by 124.123.19.19 (talk)Reverted unexplained edit. Two kinds of diagonal matrix are described in the lead. This is an example of the latter type.
Rambor12 (talk | contribs)
Line 46:
==Vector-to-matrix diag operator==
 
A diagonal matrix <math>\mathbf{D}</math> can be constructed from a vector <math>\mathbf{a} = \begin{bmatrix}a_1 & \dotsm & a_n\end{bmatrix}^\textsf{T}</math> using the <math>\operatorname{diag}</math> operator:
<math display="block">\mathbf{D} = \operatorname{diag}(a_1, \dots, a_n)</math>
 
This may be written more compactly as <math>\mathbf{D} = \operatorname{diag}(\mathbf{a})</math>.
 
The same operator is also used to represent [[Block matrix#Block diagonal matrices|block diagonal matrices]] as <math> A = \operatorname{diag}(A_1, \dots, A_n)</math> where each argument <math>A_i</math> is a matrix.