Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Check if the value is between the low and high values, inclusively.
T_y | Type of value |
T_low | Type of low value |
T_high | Type of high value |
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | Value to check |
low | Low bound |
high | High bound |
<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.