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() [1/3]

template<bool ZeroInput = false, typename Output , typename Input , require_t< is_all_arithmetic_scalar< Output > > * = nullptr, require_t< is_all_var_scalar< Input > > * = nullptr>
void stan::math::internal::collect_adjoints ( Output &  output,
Input &&  input 
)
inline

Collect the adjoints from the input and add them to the output.

Template Parameters
ZeroInputIf true, the adjoints of the input will be set to zero
OutputA tuple or type where all scalar types are arithmetic types
InputA tuple or type where all scalar types are var types
Parameters
outputThe output to which the adjoints will be added
inputThe input from which the adjoints will be collected

Definition at line 352 of file laplace_marginal_density.hpp.