logdet¶
- CholeskyFactor.logdet()[source]¶
Compute the (natural) log-determinant of the matrix from its Cholesky factorization.
- Returns:
logdet (float) – The natural logarithm of the determinant of the matrix A that was factorized.
See also
slogdet,det,numpy.linalg.slogdet,numpy.linalg.det,scipy.linalg.detNotes
This function computes the log-determinant of the matrix A from its Cholesky factorization. If the factorization is in \(LL^T\) form, the determinant is computed as:
\[\log \det(A) = 2 \sum_i \log L_{ii}.\]If the factorization is in \(LDL^{\top}\) form, the determinant is computed as:
\[\log \det(A) = \sum_i \log D_{ii}.\]Added in version 0.2.