gdeterminant: Generalized matrix determinant

View source: R/utility.R

gdeterminantR Documentation

Generalized matrix determinant

Description

Generalized determinant = product of non-zero eigenvalues (see e.g., Wood 2017). Used for (log)determinant of penalty matrices, required in log-likelihood function.

Usage

gdeterminant(x, eps = 1e-10, log = TRUE)

Arguments

x

Numeric matrix

eps

Threshold below which eigenvalues are ignored (default: 1e-10)

log

Logical: should the log-determinant be returned?

Value

Generalized determinant of input matrix


TheoMichelot/hmmTMB documentation built on Dec. 13, 2024, 11:52 a.m.