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

◆ validate_unit_vector_index()

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

Check that unit vector is at least size 2.

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

Definition at line 20 of file validate_unit_vector_index.hpp.