![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
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 62 of file check_ordered.hpp.