1 #ifndef STAN__MATH__MATRIX__LOG_DETERMINANT_HPP
2 #define STAN__MATH__MATRIX__LOG_DETERMINANT_HPP
17 template <
typename T,
int R,
int C>
20 return m.colPivHouseholderQr().logAbsDeterminant();
T log_determinant(const Eigen::Matrix< T, R, C > &m)
Returns the log absolute determinant of the specified square matrix.
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.