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

◆ check_size_match() [1/2]

template<typename T_size1 , typename T_size2 >
void stan::math::check_size_match ( const char *  function,
const char *  name_i,
T_size1  i,
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)
name_iVariable name 1 (for error messages)
iVariable size 1
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 24 of file check_size_match.hpp.