1 #ifndef STAN_MATH_PRIM_MAT_ERR_CHECK_VECTOR_HPP 2 #define STAN_MATH_PRIM_MAT_ERR_CHECK_VECTOR_HPP 31 template <
typename T,
int R,
int C>
33 const Eigen::Matrix<T, R, C>&
x) {
38 if (x.rows() == 1 || x.cols() == 1)
41 std::ostringstream
msg;
42 msg <<
") has " << x.rows() <<
" rows and " << x.cols()
43 <<
" columns but it should be a vector so it should " 44 <<
"either have 1 row or 1 column";
void check_vector(const char *function, const char *name, const Eigen::Matrix< T, R, C > &x)
void invalid_argument(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)