Throw an exception if any of the vectors in a standard vector contains negative values or is not sorted into strictly increasing order.
- Template Parameters
-
StdVec | A standard vector type with an value_type inheriting from Eigen::EigenBase with 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 contains non-positive values, if the values are not ordered, if there are duplicated values, or if any element is NaN |
Definition at line 63 of file check_positive_ordered.hpp.