Throw an exception if the specified vector is not sorted into strictly increasing order.
Throw an exception if each vector in a standard vector is not sorted into strictly increasing order.
- Template Parameters
-
T_y | A type inheriting from EigenBase with either 1 compile time row or column |
- Parameters
-
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | Vector to test |
- Exceptions
-
`std::domain_error` | if the vector elements are not ordered, if there are duplicated values, or if any element is NaN |
- Template Parameters
-
T_y | A standard vector with an inner vector type |
- Parameters
-
function | Function name (for error messages) |
name | Variable name (for error messages) |
y | std::vector to test |
- Exceptions
-
`std::domain_error` | if the vector elements are not ordered, if there are duplicated values, or if any element is NaN |
Definition at line 30 of file check_ordered.hpp.