Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ zero_adjoints() [5/5]

template<typename StdVec , require_std_vector_st< is_autodiff, StdVec > * = nullptr>
void stan::math::zero_adjoints ( StdVec &  x)
inline

Zero the adjoints of every element in a vector.

Recursively call zero_adjoints on the rest of the arguments.

Template Parameters
Ttype of current argument
Pargstype of rest of arguments
Parameters
xcurrent argument
argsrest of arguments to zero

Definition at line 69 of file zero_adjoints.hpp.