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

◆ accumulate_adjoints() [1/6]

template<typename... Pargs>
double * stan::math::accumulate_adjoints ( double *  dest,
const var x,
Pargs &&...  args 
)
inline

Accumulate adjoints from x into storage pointed to by dest, increment the adjoint storage pointer, recursively accumulate the adjoints of the rest of the arguments, and return final position of storage pointer.

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

Definition at line 51 of file accumulate_adjoints.hpp.