예제 #1
0
 inline bool check_less_or_equal(const char* function,
                                 const T_y& y,
                                 const T_high& high,
                                 const char* name,  
                                 T_result* result) {
   return check_less_or_equal(function,y,high,name,result,default_policy());
 }
예제 #2
0
 inline bool
 check_cholesky_factor(
   const char* function,
   const char* name,
   const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y
 ) {
   check_less_or_equal(function, "columns and rows of Cholesky factor",
                       y.cols(), y.rows());
   check_positive(function, "columns of Cholesky factor", y.cols());
   check_lower_triangular(function, name, y);
   for (int i = 0; i < y.cols(); ++i)
     // FIXME:  should report row
     check_positive(function, name, y(i, i));
   return true;
 }