![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
inline |
Check that size is at least 1.
Used for simplexes and other constraints that do a (size - 1) operation.
| var_name | Name of variable |
| expr | Expression in which variable is declared |
| val | Size to check |
| std::invalid_argument | if size is less than 1 |
Definition at line 21 of file validate_positive_index.hpp.