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

◆ collect_adjoints() [3/3]

template<typename Output , typename Input >
void stan::math::internal::collect_adjoints ( Output &&  output,
const vari ret,
Input &&  input 
)
inline

Used in reverse pass to collect adjoints to the output.

Template Parameters
OutputA tuple or type where all scalar types are var types
InputA tuple or type where all scalar types are arithmetic types
Parameters
outputThe output to which the adjoints will be added
retThe vari object containing the adjoint to be added
inputThe input from which the adjoints will be collected

Definition at line 949 of file laplace_marginal_density.hpp.