powered by
Function computes the sum of main-diagonal elements of a square matrix.
Trace(x, quiet = FALSE)
(numeric) value, the trace of the matrix
(matrix, Matrix) object
(logical) TRUE = will suppress any warning, which will be issued otherwise