Given a square matrix mat, return the sum of the matrix diagonals. Only include the sum of all the elements on the primary diagonal and all the elements on the secondary diagonal that are not part of ...
where argument can be either a numeric square matrix or a vector. If argument is a square matrix, the DIAG function creates a matrix with diagonal elements equal to the corresponding diagonal elements ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results