logdet: Log Determinant

Description Usage Arguments Value See Also Examples

View source: R/logdet.R

Description

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

Usage

1
logdet(a)

Arguments

a

Square matrix (Q x Q)

Value

A single-value double.

See Also

tr and fillout

Examples

1
2
# Identity Matrix of size 2
logdet(diag(c(2, 2)))

Example output

Loading required package: mclust
Package 'mclust' version 5.4.3
Type 'citation("mclust")' for citing this R package in publications.
Loading required package: tree
[1] 1.386294

msos documentation built on Oct. 31, 2020, 9:07 a.m.