.Trace {ProcMod} | R Documentation |
Compute the trace of a square matrix.
Description
The trace of a square matrix is defined as the sum of its diagonal elements.
Usage
.Trace(X)
Arguments
X |
a square matrix |
Value
the trace of X
Note
Internal function do not use.
Author(s)
Eric Coissac
Christelle Gonindard-Melodelima
Examples
m <- matrix(1:16, nrow = 4)
ProcMod:::.Trace(m)
[Package ProcMod version 1.0.8 Index]