Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ compute_log_determinant()

double stan::math::internal::LUSolver::compute_log_determinant ( ) const
inline

Compute log determinant from LU factorization.

Note
This uses the diagonal of the combined LU matrix produced by Eigen (equivalently the diagonal of U). It does not account for the sign of the permutation; callers assume det(B) > 0 in the Laplace correction.
Returns
Sum of log of the LU diagonal entries.

Definition at line 876 of file laplace_marginal_density_estimator.hpp.