powered by
Computes the trace of a matrix.
tr(a)
Trace of A
A
Matrix
Maria Antonietta Del Ferraro [email protected] Henk A.L. Kiers [email protected] Paolo Giordani [email protected]
X <- matrix(rnorm(6*6),ncol=6) trace <- tr(X)
Run the code above in your browser using DataLab