Skip to content
Quantoros

Given A=LLᵀ positive definite, how can log det(A) be calculated without forming a determinant?

MathematicsLevel: IntermediateStable linear systems

Given A=LLᵀ positive definite, how can log det(A) be calculated without forming a determinant?

Hints
  • Use the identity det(LLᵀ)=det(L)².
  • Log products become sums.

Answer

Use 2Σlog(L_ii). Triangular determinants multiply diagonal entries; logs avoid overflow and underflow of that product.

Source and licence: NumPy — numerical linear algebra · BSD-3-Clause · answer: Quantoros editorial

Related questions