Automatic Differentiation
 
Loading...
Searching...
No Matches
start_nested.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_CORE_START_NESTED_HPP
2#define STAN_MATH_REV_CORE_START_NESTED_HPP
3
5
6namespace stan {
7namespace math {
8
16static inline void start_nested() {
18 ChainableStack::instance_->var_stack_.size());
20 ChainableStack::instance_->var_nochain_stack_.size());
22 ChainableStack::instance_->var_alloc_stack_.size());
24}
25
26} // namespace math
27} // namespace stan
28#endif
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 ...
static thread_local AutodiffStackStorage * instance_