1 #ifndef STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_COLUMN_INDEX_HPP
2 #define STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_COLUMN_INDEX_HPP
24 template <
typename T_y,
typename T_result,
int R,
int C>
27 const Eigen::Matrix<T_y,R,C>& y,
30 if ((i > 0) && (i <= static_cast<size_t>(y.cols())))
33 std::ostringstream msg;
34 msg << name <<
" (%1%) must be greater than 0 and less than "
36 std::string tmp(msg.str());
bool dom_err(const char *function, const T &y, const char *name, const char *error_msg, const T_msg error_msg2, T_result *result)
bool check_column_index(const char *function, size_t i, const Eigen::Matrix< T_y, R, C > &y, const char *name, T_result *result)
Return true if the specified index is a valid column of the matrix.