1#ifndef STAN_MATH_PRIM_FUN_MIN_HPP
2#define STAN_MATH_PRIM_FUN_MIN_HPP
23template <
typename T1,
typename T2, require_all_arithmetic_t<T1, T2>* =
nullptr>
25 return std::min(x, y);
40template <
typename T, require_container_t<T>* =
nullptr>
44 }
else if (m.size() == 0) {
48 m, [](
const auto& x) {
return x.minCoeff(); });
typename value_type< T >::type value_type_t
Helper function for accessing underlying type.
auto min(T1 x, T2 y)
Returns the minimum coefficient of the two specified scalar arguments.
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.
static constexpr double INFTY
Positive infinity.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...