1#ifndef STAN_MATH_REV_CORE_nested_rev_autodiff_HPP
2#define STAN_MATH_REV_CORE_nested_rev_autodiff_HPP
36 void*
operator new(std::size_t) =
delete;
nested_rev_autodiff & operator=(const nested_rev_autodiff &)=delete
void set_zero_all_adjoints()
Reset all adjoint values in this nested stack to zero.
nested_rev_autodiff(const nested_rev_autodiff &)=delete
A class following the RAII idiom to start and recover nested autodiff scopes.
static void recover_memory_nested()
Recover only the memory used for the top nested call.
static void start_nested()
Record the current position so that recover_memory_nested() can find it.
static void set_zero_all_adjoints_nested()
Reset all adjoint values in the top nested portion of the stack to zero.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...