Stan Math Library  2.11.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>
11  inline T
13  return A.log_abs_det();
14  }
15 
16  }
17 }
18 #endif
LDLT_factor is a thin wrapper on Eigen::LDLT to allow for reusing factorizations and efficient autodi...
Definition: LDLT_factor.hpp:58
T log_determinant_ldlt(stan::math::LDLT_factor< T, R, C > &A)

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