Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ check_pos_definite() [2/3]

template<typename Derived >
void stan::math::check_pos_definite ( const char *  function,
const char *  name,
const Eigen::LDLT< Derived > &  cholesky 
)
inline

Check if the specified LDLT decomposition of a matrix is positive definite.

Template Parameters
Derivedtype of the Eigen::LDLT decomposition
Parameters
functionfunction name (for error messages)
namevariable name (for error messages)
choleskyEigen::LDLT to test, whose progenitor must not have any NaN elements
Exceptions
std::domain_errorif the matrix is not positive definite

Definition at line 63 of file check_pos_definite.hpp.