Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Check if y
is non-negative.
This function is vectorized and will check each element of y
.
T_y | Type of y |
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | Variable to check |
<code>domain_error</code> | if y is negative or if any element of y is NaN. |
Definition at line 24 of file check_nonnegative.hpp.