1 #ifndef STAN_MATH_PRIM_MAT_FUN_MIN_HPP
2 #define STAN_MATH_PRIM_MAT_FUN_MIN_HPP
20 inline int min(
const std::vector<int>& x) {
24 for (
size_t i = 1; i < x.size(); ++i)
38 inline T
min(
const std::vector<T>& x) {
40 return std::numeric_limits<T>::infinity();
42 for (
size_t i = 1; i < x.size(); ++i)
54 template <
typename T,
int R,
int C>
55 inline T
min(
const Eigen::Matrix<T, R, C>& m) {
57 return std::numeric_limits<double>::infinity();
int min(const std::vector< int > &x)
Returns the minimum coefficient in the specified column vector.
void 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.