Content deleted Content added
Line 51:
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> \mathbf{A} = \operatorname{diag}(A_1, \dots, A_n)</math> where each argument <math>A_i</math> is a matrix.
The <math>\operatorname{diag}</math> operator may be written as:
<math display="block">\operatorname{diag}(\mathbf{a}) = \left(\mathbf{a} \mathbf{1}^\textsf{T}\right) \circ \mathbf{I}</math>
where <math>\circ</math> represents the [[Hadamard product (matrices)|Hadamard product]] and <math>\mathbf{1}</math> is a constant vector with elements 1.
|