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

◆ check_ldlt_factor()

template<typename T >
void stan::math::check_ldlt_factor ( const char *  function,
const char *  name,
LDLT_factor< T > &  A 
)
inline

Raise domain error if the specified LDLT factor is invalid.

An LDLT_factor is invalid if it was constructed from a matrix that is not positive definite.

Template Parameters
TType matrix of LDLT
Parameters
[in]functionname of function for error messages
[in]namevariable name for error messages
[in]Athe LDLT factor to check for validity
Exceptions
<code>std::domain_error</code>if the LDLT factor is invalid

Definition at line 25 of file check_ldlt_factor.hpp.