Exemplo n.º 1
0
 inline bool
 check_pos_definite(const char* function,
                    const char* name,
                    const Eigen::LLT<Derived>& cholesky) {
   if (cholesky.info() != Eigen::Success
       || !(cholesky.matrixLLT().diagonal().array() > 0.0).all())
     domain_error(function, "Cholesky decomposition of", " failed", name);
   return true;
 }
Exemplo n.º 2
0
 inline void check_pos_definite(const char* function, const char* name,
                                const Eigen::LLT<Derived>& cholesky) {
   if (cholesky.info() != Eigen::Success
       || !(cholesky.matrixLLT().diagonal().array() > 0.0).all())
     domain_error(function, "Matrix", " is not positive definite", name);
 }