![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Check if the specified vector is sorted into increasing order (repeated values are okay).
EigVec | A type derived from EigenBase with 1 compile time row or column. |
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | Vector to test |
<code>std::domain_error</code> | if the vector elements are not sorted, or if any element is NaN . |
Definition at line 26 of file check_sorted.hpp.