R/LDRToolsInternals.R

Defines functions matrix.trace

# Function to compute the trace of a square matrix

matrix.trace <- function(x) 
    {
    sum(diag(x))
    }

Try the LDRTools package in your browser

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

LDRTools documentation built on Sept. 18, 2023, 1:06 a.m.