Computes the trace of a numeric or character matrix.
mxtr(x)
Arguments
x
numeric or character matrix.
Value
numeric or character.
References
Guidotti E (2022). "calculus: High-Dimensional Numerical and Symbolic Calculus in R." Journal of Statistical Software, 104(5), 1-37. doi:10.18637/jss.v104.i05