1 #ifndef STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_NONZERO_SIZE_HPP
2 #define STAN__MATH__ERROR_HANDLING__MATRIX__CHECK_NONZERO_SIZE_HPP
32 template <
typename T_y,
typename T_result>
41 return dom_err(
function,
size_t(),
42 name,
" has size %1%, but must have a non-zero size",
"",
bool dom_err(const char *function, const T &y, const char *name, const char *error_msg, const T_msg error_msg2, T_result *result)
Primary template class for the metaprogram to compute the index type of a container.
bool check_nonzero_size(const char *function, const T_y &y, const char *name, T_result *result)
Return true if the specified matrix/vector is of non-zero size.