Computes the trace of a matrix.
Trace of A
Maria Antonietta Del Ferraro firstname.lastname@example.org Henk A.L. Kiers email@example.com Paolo Giordani firstname.lastname@example.org
X <- matrix(rnorm(6*6),ncol=6)
trace <- tr(X)
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.
Questions? Problems? Suggestions? Tweet to @rdrrHQian@mutexlabs.com.
All documentation is copyright its authors; we didn't write any of that.