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

◆ check_positive() [2/2]

void stan::math::check_positive ( const char *  function,
const char *  name,
const char *  expr,
int  size 
)
inline

Check if size is positive.

Parameters
functionFunction name (for error messages)
nameVariable name (for error messages)
exprExpression for the dimension size (for error messages)
sizeSize value to check
Exceptions
<code>std::invalid_argument</code>if size is zero or negative.

Definition at line 42 of file check_positive.hpp.