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

◆ zero_adjoints() [2/5]

template<typename T , require_st_arithmetic< T > * = nullptr>
void stan::math::zero_adjoints ( T &  x)
inlinenoexcept

Do nothing for non-autodiff arguments.

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 27 of file zero_adjoints.hpp.