Stan Math Library  2.20.0
reverse mode automatic differentiation
log_determinant_ldlt.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_FUN_LOG_DETERMINANT_LDLT_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_LOG_DETERMINANT_LDLT_HPP
3 
5 
6 namespace stan {
7 namespace math {
8 
9 // Returns log(abs(det(A))) given a LDLT_factor of A
10 template <int R, int C, typename T>
12  return A.log_abs_det();
13 }
14 
15 } // namespace math
16 } // namespace stan
17 #endif
LDLT_factor is a thin wrapper on Eigen::LDLT to allow for reusing factorizations and efficient autodi...
Definition: LDLT_factor.hpp:63
T log_determinant_ldlt(LDLT_factor< T, R, C > &A)

     [ Stan Home Page ] © 2011–2018, Stan Development Team.