Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ check_bounded()

template<typename T_y , typename T_low , typename T_high >
void stan::math::check_bounded ( const char *  function,
const char *  name,
const T_y &  y,
const T_low &  low,
const T_high &  high 
)
inline

Check if the value is between the low and high values, inclusively.

Template Parameters
T_yType of value
T_lowType of low value
T_highType of high value
Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
yValue to check
lowLow bound
highHigh bound
Exceptions
<code>std::domain_error</code>otherwise. This also throws if any of the arguments are NaN.

Definition at line 75 of file check_bounded.hpp.