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

◆ count_vars_impl() [2/6]

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

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

Template Parameters
VecContainerstd::vector holding arguments which contain Vars
PargsTypes of remaining arguments
Parameters
[in]countThe current count of the number of vars
[in]xA vector holding containers of vars
[in]argsobjects to be forwarded to recursive call of count_vars_impl

Definition at line 72 of file count_vars.hpp.