Does $\log(\det(A))$ equals sum of log of diagonal elements of D in LDLT decomposition?

79 Views Asked by At

For a large matrix $A$, I need to evaluate the $\log(\det(A))$. I already have it's LDLT decomposition.

Is it possible to evaluate the $\log\det$ with the elements of the diagonal $D$ of the LDLT decomposition?

Thanks!

1

There are 1 best solutions below

0
On BEST ANSWER

Note

$$\det (A) = \det (LDL^T) = \det (L) \det (D) \det(L^T) = \det D$$

as $L$ is lower triangular with diagonal entries all one.