R/tracemat.R

Defines functions tracemat

Documented in tracemat

## File Name: tracemat.R
## File Version: 0.07

########################################
# trace of a matrix
tracemat <- function(A)
{
    res <- sum(diag(A))
    return(res)
}
########################################

Try the sirt package in your browser

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

sirt documentation built on May 29, 2024, 8:43 a.m.