R/util.R

Defines functions gdet

# Compute the determinant of a matrix, which can be 1x1 (scalar)
gdet <- function(M)
{
	ifelse(is.matrix(M), det(M), M[1])
}

Try the valse package in your browser

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

valse documentation built on May 31, 2021, 9:10 a.m.