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