
Last chance! 50% off unlimited learning
Sale ends in
The trace of a square matrix is defined as the sum of its diagonal elements.
.Trace(X)
a square matrix
the trace of X
# NOT RUN {
m <- matrix(1:16, nrow = 4)
ProcMod:::.Trace(m)
# }
Run the code above in your browser using DataLab