logdeterminant
Log-determinant, or logdet, of a square matrix A is the natural logarithm of its determinant, written as log det(A). It is real-valued when det(A) > 0, and is most commonly defined for symmetric positive definite matrices, for which det(A) > 0. If A is singular, det(A) = 0 and log det is undefined in the real sense; in some contexts a pseudodeterminant or a complex-valued extension may be used.
Equivalences: if A has eigenvalues λ_i, then det(A) = ∏ λ_i and log det(A) = ∑ log λ_i. If A
Computation: for SPD A, a stable method is Cholesky decomposition A = L L^T and log det(A) =
Differentiation and gradients: the derivative with respect to A is ∂ log det A / ∂ A = (A^{-T}); for
Applications: the log-determinant appears in Gaussian log-likelihoods, Bayesian statistics, Gaussian processes, and various optimization problems, providing
See also: determinant, matrix logarithm, Cholesky decomposition, LU decomposition.