All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
log_determinant_ldlt.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_MAT_FUN_LOG_DETERMINANT_LDLT_HPP
#define STAN_MATH_PRIM_MAT_FUN_LOG_DETERMINANT_LDLT_HPP
#include <stan/math/prim/mat/fun/LDLT_factor.hpp>
namespace stan {
namespace math {
// Returns log(abs(det(A))) given a LDLT_factor of A
template<int R, int C, typename T>
inline T
log_determinant_ldlt(stan::math::LDLT_factor<T, R, C> &A) {
return A.log_abs_det();
}
}
}
#endif
LDLT_factor.hpp
stan::math::LDLT_factor< T, R, C >::log_abs_det
T log_abs_det() const
Definition: LDLT_factor.hpp:93
stan::math::LDLT_factor< T, R, C >
LDLT_factor is a thin wrapper on Eigen::LDLT to allow for reusing factorizations and efficient autodi...
Definition: LDLT_factor.hpp:58
stan::math::log_determinant_ldlt
T log_determinant_ldlt(stan::math::LDLT_factor< T, R, C > &A)
Definition: log_determinant_ldlt.hpp:12

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