R/trace_matrix.R

Defines functions trace_matrix

## Function written to match MATLAB function
## Author: Andrew Hooker

trace_matrix <- function(mat){
    return(sum(diag(mat)))
}

Try the PopED package in your browser

Any scripts or data that you put into this service are public.

PopED documentation built on May 21, 2021, 5:08 p.m.