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

◆ check_matching_dims() [3/3]

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

Check that the unnamed Eigen inputs have the same dimensions.

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 dimensions do not match

Definition at line 171 of file check_matching_dims.hpp.