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

◆ check_consistent_sizes() [4/4]

template<typename T , typename... Types, require_all_container_t< T, Types... > * = nullptr>
void stan::math::check_consistent_sizes ( const char *  function,
T &&  x,
Types &&...  xs 
)
inline

Check that the unnamed container inputs have the same size.

Inputs are labeled arg1, arg2, and so on in error messages.

Template Parameters
Ttype of the first input
Typestypes of the remaining inputs
Parameters
functionfunction name (for error messages)
xfirst input
xsremaining inputs
Exceptions
`invalid_argument`if sizes are inconsistent

Definition at line 84 of file check_consistent_sizes.hpp.