Throw an exception if y
is not less than each element of high
.
Throw an exception if each element of y
is not less than high
.
This function is vectorized and will check each element of y
against each element of high
.
- Template Parameters
-
T_y | A scalar type |
T_high | A standard vector or type inheriting from Eigen::DenseBase with compile time rows or columns equal to one and value_type equal to a stan scalar. |
Idxs | A parameter pack of Integral types |
- Parameters
-
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | Variable to check |
high | Upper bound |
idxs | Pack of integral types to construct lazily construct the error message indices |
- Exceptions
-
`std::domain_error` | if y is not less than high or if any element of y or high is NaN |
This function is vectorized and will check each element of y
against each element of high
.
- Template Parameters
-
T_y | A standard vector or type inheriting from Eigen::DenseBase with compile time rows or columns equal to one and value_type equal to a stan scalar. |
T_high | A scalar type |
Idxs | A parameter pack of Integral types |
- Parameters
-
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | Variable to check |
high | Upper bound |
idxs | Pack of integral types to construct lazily construct the error message indices |
- Exceptions
-
`std::domain_error` | if y is not less than high or if any element of y or high is NaN |
Definition at line 74 of file check_less_or_equal.hpp.