1#ifndef STAN_MATH_PRIM_ERR_THROW_DOMAIN_ERROR_MAT_HPP
2#define STAN_MATH_PRIM_ERR_THROW_DOMAIN_ERROR_MAT_HPP
31template <
typename T, require_eigen_t<T>* =
nullptr>
33 const T& y,
size_t i,
size_t j,
34 const char* msg1,
const char* msg2) {
35 std::ostringstream vec_name_stream;
44 std::string vec_name(vec_name_stream.str());
67 const T& y,
size_t i,
size_t j,
void throw_domain_error(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
Throw a domain error with a consistently formatted message.
void throw_domain_error_vec(const char *function, const char *name, const T &y, size_t i, const char *msg1, const char *msg2)
Throw a domain error with a consistently formatted message.
void throw_domain_error_mat(const char *function, const char *name, const T &y, size_t i, size_t j, const char *msg1, const char *msg2)
Throw a domain error with a consistently formatted message for matrices.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
If the input type T has a static comple time constant type ColsAtCompileTime equal to 1 this has a st...
If the input type T has a static comple time constant type RowsAtCompileTime equal to 1 this has a st...