Stan Math Library  2.20.0
reverse mode automatic differentiation
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 
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 STAN_THREADS_DEF AutodiffStackStorage * instance_
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.

     [ Stan Home Page ] © 2011–2018, Stan Development Team.