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

◆ check_less_or_equal() [1/3]

template<typename T_y , typename T_high , require_all_stan_scalar_t< T_y, T_high > * = nullptr, typename... Idxs>
void stan::math::check_less_or_equal ( const char *  function,
const char *  name,
const T_y &  y,
const T_high &  high,
Idxs...  idxs 
)
inline

Throw an exception if y is not less than high.

Throw an exception if each element of y is not less than the associated element of high.

This function is vectorized and will check each element of y against each element of high.

Template Parameters
T_yA scalar type
T_highA scalar type
IdxsA parameter pack of Integral types
Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
yVariable to check
highUpper bound
idxsPack 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_yType inheriting from Eigen::DenseBase or a var_value with the var's inner type inheriting from Eigen::DenseBase where the compile time number of rows or columns is not equal to one
T_highType inheriting from Eigen::DenseBase or a var_value with the var's inner type inheriting from Eigen::DenseBase where the compile time number of rows or columns is not equal to one
IdxsA parameter pack of Integral types
Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
yVariable to check
highUpper bound
idxsPack 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 36 of file check_less_or_equal.hpp.