Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ validate_positive_index()

void stan::math::validate_positive_index ( const char *  var_name,
const char *  expr,
int  val 
)
inline

Check that simplex is at least size 1.

Parameters
var_nameName of simplex variable
exprExpression in which variable is declared
valSize of simplex
Exceptions
std::invalid_argumentif simplex size is less than 1

Definition at line 20 of file validate_positive_index.hpp.