1 #ifndef STAN_MATH_PRIM_MAT_FUN_LOG_DETERMINANT_SPD_HPP 2 #define STAN_MATH_PRIM_MAT_FUN_LOG_DETERMINANT_SPD_HPP 18 template <
typename T,
int R,
int C>
28 return m.ldlt().vectorD().array().log().sum();
fvar< T > log(const fvar< T > &x)
void check_square(const char *function, const char *name, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y)
Check if the specified matrix is square.
T log_determinant_spd(const Eigen::Matrix< T, R, C > &m)
Returns the log absolute determinant of the specified square matrix.