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 
6 namespace stan {
7 namespace math {
8 
9 /**
10  * Record the current position so that <code>recover_memory_nested()</code>
11  * can find it.
12  */
13 static inline void start_nested() {
15  ChainableStack::instance().var_stack_.size());
17  ChainableStack::instance().var_nochain_stack_.size());
19  ChainableStack::instance().var_alloc_stack_.size());
21 }
22 
23 } // namespace math
24 } // namespace stan
25 #endif
static AutodiffStackStorage & instance()
static void start_nested()