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) {
23 for (
size_t i = 1; i < x.size(); ++i)
37 inline T
min(
const std::vector<T>& x) {
39 return std::numeric_limits<T>::infinity();
41 for (
size_t i = 1; i < x.size(); ++i)
53 template <
typename T,
int R,
int C>
54 inline T
min(
const Eigen::Matrix<T, R, C>& m) {
56 return std::numeric_limits<double>::infinity();
void check_nonzero_size(const char *function, const char *name, const T_y &y)
Check if the specified matrix/vector is of non-zero size.
int min(const std::vector< int > &x)
Returns the minimum coefficient in the specified column vector.