1#ifndef STAN_MATH_PRIM_ERR_INVALID_ARGUMENT_VEC_HPP
2#define STAN_MATH_PRIM_ERR_INVALID_ARGUMENT_VEC_HPP
34 const T& y,
size_t i,
const char* msg1,
36 std::ostringstream vec_name_stream;
38 std::string vec_name(vec_name_stream.str());
62 const T& y,
size_t i,
const char* msg) {
T get(const T &x, size_t n)
Returns the provided element.
void invalid_argument_vec(const char *function, const char *name, const T &y, size_t i, const char *msg1, const char *msg2)
Throw an invalid argument exception with a consistently formatted message.
void invalid_argument(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
Throw an invalid_argument exception with a consistently formatted message.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...