Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ accumulate_adjoints() [4/6]

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

Accumulate adjoints from x (an Eigen type containing vars) 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
EigTType derived from EigenBase containing vars.
PargsTypes of remaining arguments
Parameters
destPointer to where adjoints are to be accumulated
xAn eigen type holding vars to accumulate over
argsFurther args to accumulate over
Returns
Final position of adjoint storage pointer

Definition at line 119 of file accumulate_adjoints.hpp.