1 #ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_ROW_INDEX_HPP 2 #define STAN_MATH_PRIM_MAT_ERR_CHECK_ROW_INDEX_HPP 29 template <
typename T_y,
int R,
int C>
31 const Eigen::Matrix<T_y, R, C>&
y,
size_t i) {
36 std::stringstream
msg;
37 msg <<
" for rows of " <<
name;
void check_row_index(const char *function, const char *name, const Eigen::Matrix< T_y, R, C > &y, size_t i)
void out_of_range(const char *function, int max, int index, const char *msg1="", const char *msg2="")