1 #ifndef STAN__MATH__MATRIX__LOG_DETERMINANT_SPD_HPP
2 #define STAN__MATH__MATRIX__LOG_DETERMINANT_SPD_HPP
19 template <
typename T,
int R,
int C>
28 return m.ldlt().vectorD().array().log().sum();
fvar< T > log(const fvar< T > &x)
bool check_square(const char *function, const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y, const char *name, T_result *result)
Return true 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.