log-determinant

Techniques for calculating log-determinant of a matrix.

#include <mathtoolbox/log-determinant.hpp>

Log-Determinant of a Symmetric Positive-Definite Matrix

Let be a symmetric positive-definite matrix such a covariance matrix. The goal is to calculate the log of its determinant: This calculation often appears when handling a log-likelihood of some Gaussian-related event.

A naive way is to calculate the determinant explicitly and then calculate its log. However, this way is known for its numerical instability (i.e., likely to go to negative infinity).

This module offers a function to calculate log-determinant much more stably.

Useful Resources