1#ifndef STAN_MATH_REV_FUN_FMIN_HPP
2#define STAN_MATH_REV_FUN_FMIN_HPP
96 return a <= b ? a :
var(b);
124 return b <= a ? b :
var(a);
static constexpr double NOT_A_NUMBER
(Quiet) not-a-number value.
bool is_nan(T &&x)
Returns 1 if the input's value is NaN and 0 otherwise.
fvar< T > fmin(const fvar< T > &x1, const fvar< T > &x2)
var_value< plain_type_t< T > > make_callback_var(T &&value, F &&functor)
Creates a new var initialized with a callback_vari with a given value and reverse-pass callback funct...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...