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

◆ check_pos_definite() [3/3]

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

Check if the specified LLT decomposition was successful.

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

Definition at line 83 of file check_pos_definite.hpp.