Automatic Differentiation
 
Loading...
Searching...
No Matches
check_flag_sundials.hpp File Reference
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err/domain_error.hpp>
#include <kinsol/kinsol.h>
#include <cvodes/cvodes.h>
#include <array>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 

Macros

#define CHECK_CVODES_CALL(call)   cvodes_check(call, #call)
 
#define CHECK_IDAS_CALL(call)   idas_check(call, #call)
 
#define CHECK_KINSOL_CALL(call)   kinsol_check(call, #call)
 

Functions

std::array< std::string, 2 > stan::math::cvodes_flag_msg (int flag)
 Map cvodes error flag to acutally error msg.
 
void stan::math::cvodes_check (int flag, const char *func_name)
 Throws a std::domain_error exception when a Sundial function fails (i.e.
 
std::array< std::string, 2 > stan::math::idas_flag_msg (int flag)
 
void stan::math::idas_check (int flag, const char *func_name)
 
void stan::math::kinsol_check (int flag, const char *func_name)
 Throws an exception message when the functions in KINSOL fails.
 
void stan::math::kinsol_check (int flag, const char *func_name, long int max_num_steps)
 Throws an exception message when the KINSol() call fails.