DIAG Diagonal operator and diagonals of an operator. diag(OP) is the main diagonal of the Spot operator OP.