Throw an exception if the specified the vector contains negative values or is not sorted into strictly increasing order.
- Template Parameters
-
| Vec | A type derived 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 31 of file check_positive_ordered.hpp.