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

◆ count_vars_impl() [5/6]

template<typename Arith , require_arithmetic_t< scalar_type_t< Arith > > * = nullptr, typename... Pargs>
size_t stan::math::internal::count_vars_impl ( size_t  count,
Arith &  x,
Pargs &&...  args 
)
inline

Arguments without vars contribute zero to the total number of vars.

Return the running total number of vars plus the number of vars in the remaining arguments.

Template Parameters
ArithAn object that is either arithmetic or holds arithmetic types
PargsTypes of remaining arguments
Parameters
[in]countThe current count of the number of vars
[in]xAn arithmetic value or container
[in]argsobjects to be forwarded to recursive call of count_vars_impl

Definition at line 129 of file count_vars.hpp.