1#ifndef STAN_MATH_REV_CORE_SET_ZERO_ALL_ADJOINTS_HPP
2#define STAN_MATH_REV_CORE_SET_ZERO_ALL_ADJOINTS_HPP
16 x->set_zero_adjoint();
19 x->set_zero_adjoint();
static void set_zero_all_adjoints()
Reset all adjoint values in the stack to zero.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
std::vector< ChainableT * > var_stack_
std::vector< ChainableT * > var_nochain_stack_
static thread_local AutodiffStackStorage * instance_