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

◆ copy_compute_s2() [2/2]

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

Copies the adjoints from the input to the output, scaling them by 0.5.

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 866 of file laplace_marginal_density.hpp.