powered by
Returns trace of a square matrix
TRACE calculates the trace of a square matrix and returns a scale value.
TRACE(M)
## The function is currently defined as function (M) { return(sum(diag(M))) }
Run the code above in your browser using DataLab