Automatic Differentiation
 
Loading...
Searching...
No Matches
collect_adjoints.hpp File Reference

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::internal
 A comparator that works for any container type that has the brackets operator.
 

Functions

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)
 Collect the adjoints from the input and add them to the output.
 
template<typename Output , typename Input , require_t< is_all_arithmetic_scalar< Output > > * = nullptr, require_t< is_all_arithmetic_scalar< Input > > * = nullptr>
void stan::math::internal::collect_adjoints (Output &&output, Input &&input)
 Collects the adjoints from the input and adds them to the output.
 
template<typename Output , typename Input >
void stan::math::internal::collect_adjoints (Output &&output, const vari *ret, Input &&input)
 Used in reverse pass to collect adjoints to the output.
 

Variables

constexpr bool stan::math::internal::ZeroOut = true