mxtr | R Documentation |
Computes the trace of a numeric
or character
matrix.
mxtr(x)
x |
|
numeric
or character
.
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
Other matrix algebra:
mxdet()
,
mxinv()
,
mx()
### numeric matrix x <- matrix(1:4, nrow = 2) mxtr(x) ### character matrix x <- matrix(letters[1:4], nrow = 2) mxtr(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.