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

◆ count_vars_impl() [3/6]

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

Count the number of vars in x (an eigen container), add it to the running total, count the number of vars in the remaining arguments and return the result.

Template Parameters
EigTA type derived from EigenBase
PargsTypes of remaining arguments
Parameters
[in]countThe current count of the number of vars
[in]xAn Eigen container holding vars
[in]argsobjects to be forwarded to recursive call of count_vars_impl

Definition at line 93 of file count_vars.hpp.