logdet function

Log Determinant

Log Determinant

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 (QxQQ x Q)

Returns

A single-value double.

Examples

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

See Also

tr and fillout

  • Maintainer: James Balamuta
  • License: MIT + file LICENSE
  • Last published: 2020-10-31