Stan Math Library  2.12.0
reverse mode automatic differentiation
chainable_alloc.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_CORE_CHAINABLE_ALLOC_HPP
2 #define STAN_MATH_REV_CORE_CHAINABLE_ALLOC_HPP
3 
5 
6 namespace stan {
7  namespace math {
8 
17  public:
19  ChainableStack::var_alloc_stack_.push_back(this);
20  }
21  virtual ~chainable_alloc() { }
22  };
23 
24  }
25 }
26 #endif
static std::vector< ChainableAllocT * > var_alloc_stack_
A chainable_alloc is an object which is constructed and destructed normally but the memory lifespan i...

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