linear algebra - Meaning of matrix $\operatorname {diag}$ operator with . . . I understand that there is a $\operatorname {diag}$ operator, which, when given a vector argument, creates a matrix with the vector values along the diagonal, but I can't understand how such an operator would work on a set of matrices