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

◆ check_pos_semidefinite() [2/2]

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

Check if the specified matrix is positive semidefinite.

Template Parameters
DerivedDerived type of the Eigen::LDLT transform.
Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
choleskyEigen::LDLT to test
Exceptions
<code>std::domain_error</code>if the matrix is not positive semi-definite.

Definition at line 62 of file check_pos_semidefinite.hpp.