Takes the log determinant of a square matrix. Log is that of base e sometimes referred to as ln().

logdet(a)

Arguments

a

Square matrix (\(Q \times Q\))

Value

A single-value double.

See also

Examples

# Identity Matrix of size 2
logdet(diag(c(2, 2)))
#> [1] 1.386294