Automatic Differentiation
 
Loading...
Searching...
No Matches
domain_error.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_ERR_DOMAIN_ERROR_HPP
2#define STAN_MATH_PRIM_ERR_DOMAIN_ERROR_HPP
3
6
7namespace stan {
8namespace math {
9
13template <typename T>
14inline void domain_error(const char* function, const char* name, const T& y,
15 const char* msg1, const char* msg2) {
16 throw_domain_error(function, name, y, msg1, msg2);
17}
18
22template <typename T>
23inline void domain_error(const char* function, const char* name, const T& y,
24 const char* msg1) {
25 throw_domain_error(function, name, y, msg1);
26}
27
28} // namespace math
29} // namespace stan
30#endif
void throw_domain_error(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
Throw a domain error with a consistently formatted message.
void domain_error(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9