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

◆ check_size_match() [2/2]

template<typename T_size1 , typename T_size2 >
void stan::math::check_size_match ( const char *  function,
const char *  expr_i,
const char *  name_i,
T_size1  i,
const char *  expr_j,
const char *  name_j,
T_size2  j 
)
inline

Check if the provided sizes match.

Template Parameters
T_size1Type of size 1
T_size2Type of size 2
Parameters
functionFunction name (for error messages)
expr_iExpression for variable name 1 (for error messages)
name_iVariable name 1 (for error messages)
iVariable size 1
expr_jExpression for variable name 2 (for error messages)
name_jVariable name 2 (for error messages)
jVariable size 2
Exceptions
<code>std::invalid_argument</code>if the sizes do not match

Definition at line 50 of file check_size_match.hpp.