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

◆ count_vars_impl() [1/6]

template<typename VecVar , require_std_vector_vt< is_var, VecVar > * = nullptr, typename... Pargs>
size_t stan::math::internal::count_vars_impl ( size_t  count,
VecVar &&  x,
Pargs &&...  args 
)
inline

Count the number of vars in x (a std::vector of vars), add it to the running total, count the number of vars in the remaining arguments and return the result.

Template Parameters
VecVartype of standard container holding vars
PargsTypes of remaining arguments
Parameters
[in]countThe current count of the number of vars
[in]xA std::vector holding vars.
[in]argsobjects to be forwarded to recursive call of count_vars_impl

Definition at line 53 of file count_vars.hpp.