Returns the sum of the diagonal elements of a matrix.
A matrix whose diagonal elements will be added together.
This returns the trace of a matrix, which is just the sum of its diagonal elements.
The sum of the diagonal elements of X.
1 2 3
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.