1#ifndef STAN_MATH_FWD_FUN_FMAX_HPP
2#define STAN_MATH_FWD_FUN_FMAX_HPP
33 return x1 > x2 ? x1 : x2;
56 return x1 > x2 ?
fvar<T>(x1, 0) : x2;
79 return x1 >= x2 ? x1 :
fvar<T>(x2, 0);
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 > fmax(const fvar< T > &x1, const fvar< T > &x2)
Return the greater of the two specified arguments.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
This template class represents scalars used in forward-mode automatic differentiation,...