.Trace {ProcMod} | R Documentation |
The trace of a square matrix is defined as the sum of its diagonal elements.
.Trace(X)
X |
a square matrix |
the trace of X
Internal function do not use.
Eric Coissac
Christelle Gonindard-Melodelima
m <- matrix(1:16, nrow = 4)
ProcMod:::.Trace(m)