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

◆ accumulate_adjoints() [5/6]

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

Ignore arithmetic types.

Recursively accumulate the adjoints of the rest of the arguments and return final position of adjoint storage pointer.

Template Parameters
ArithA type satisfying std::is_arithmetic.
PargsTypes of remaining arguments
Parameters
destPointer to where adjoints are to be accumulated
xAn object that is either arithmetic or a container of Arithmetic types
argsFurther args to accumulate over
Returns
Final position of adjoint storage pointer

Definition at line 139 of file accumulate_adjoints.hpp.