Stan Math Library
5.0.0
Automatic Differentiation
|
void stan::math::check_ordered | ( | const char * | function, |
const char * | name, | ||
const T_y & | y | ||
) |
Throw an exception if the specified vector is not sorted into strictly increasing order.
T_y | A standard vector with inner scalar type |
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | std::vector to test |
`std::domain_error` | if the vector elements are not ordered, if there are duplicated values, or if any element is NaN |
Definition at line 61 of file check_ordered.hpp.