1#ifndef STAN_MATH_REV_CORE_START_NESTED_HPP
2#define STAN_MATH_REV_CORE_START_NESTED_HPP
void start_nested()
Store current positions before doing nested operation so can recover back to start.
static void start_nested()
Record the current position so that recover_memory_nested() can find it.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
std::vector< size_t > nested_var_alloc_stack_starts_
std::vector< size_t > nested_var_nochain_stack_sizes_
std::vector< size_t > nested_var_stack_sizes_
static thread_local AutodiffStackStorage * instance_