powered by
Fast computation of the trace of the matrix product trace(t(A)
tracemp(A, B)
The trace of the matrix product
A matrix with dimensions n*k.
A matrix with dimenions n*k.
Claus Ekstrom <claus@rprimer.dk>
A <- matrix(1:12, ncol=3) tracemp(A, A)
Run the code above in your browser using DataLab