Stan Math Library
4.9.0
Automatic Differentiation
|
void stan::math::check_sorted | ( | const char * | function, |
const char * | name, | ||
const std::vector< T_y > & | y | ||
) |
Check if the specified vector is sorted into increasing order (repeated values are okay).
T_y | Type of scalar |
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | std::vector to test |
<code>std::domain_error</code> | if the vector elements are not sorted, or if any element is NaN . |
Definition at line 56 of file check_sorted.hpp.