1#ifndef STAN_MATH_PRIM_ERR_CHECK_STD_VECTOR_INDEX_HPP
2#define STAN_MATH_PRIM_ERR_CHECK_STD_VECTOR_INDEX_HPP
27 const std::vector<T>& y,
int i) {
32 std::stringstream msg;
33 msg <<
" for " << name;
34 std::string msg_str(msg.str());
#define STAN_NO_RANGE_CHECKS_RETURN
Turns all range and size checks into no-ops.
void out_of_range(const char *function, int max, int index, const char *msg1="", const char *msg2="")
Throw an out_of_range exception with a consistently formatted message.
void check_std_vector_index(const char *function, const char *name, const std::vector< T > &y, int i)
Check if the specified index is valid in std vector This check is 1-indexed by default.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...