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

◆ accumulate_adjoints() [6/7]

template<typename Tuple , require_tuple_t< Tuple > * = nullptr, typename... Pargs>
double * stan::math::accumulate_adjoints ( double *  dest,
Tuple &&  x,
Pargs &&...  args 
)
inline

Accumulate adjoints from a tuple into storage pointed to by dest, then recursively accumulate adjoints from the remaining arguments.

Template Parameters
TupleA tuple type
PargsTypes of remaining arguments
Parameters
destPointer to where adjoints are to be accumulated
xA tuple containing arguments whose adjoints are accumulated
argsFurther args to accumulate over
Returns
Final position of adjoint storage pointer

Definition at line 159 of file accumulate_adjoints.hpp.