Stan Math Library  2.14.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  .push_back(ChainableStack::var_stack_.size());
21  }
22 
23  }
24 }
25 #endif
static std::vector< ChainableAllocT * > var_alloc_stack_
static std::vector< ChainableT * > var_nochain_stack_
static std::vector< size_t > nested_var_nochain_stack_sizes_
static std::vector< size_t > nested_var_stack_sizes_
int size(const std::vector< T > &x)
Return the size of the specified standard vector.
Definition: size.hpp:17
void start_nested()
Store current positions before doing nested operation so can recover back to start.
static std::vector< ChainableT * > var_stack_
static void start_nested()
Record the current position so that recover_memory_nested() can find it.
static std::vector< size_t > nested_var_alloc_stack_starts_

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