Stan  2.5.0
probability, sampling & optimization
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
var_stack.hpp File Reference
#include <stdexcept>
#include <vector>
#include <stan/memory/stack_alloc.hpp>

Go to the source code of this file.

Classes

class  stan::agrad::chainable_alloc
 A chainable_alloc is an object which is constructed and destructed normally but the memory lifespan is managed along with the arena allocator for the gradient calculation. More...
 

Namespaces

 stan
 Probability, optimization and sampling library.
 
 stan::agrad
 Function gradients via reverse-mode automatic differentiation.
 

Functions

static bool stan::agrad::empty_nested ()
 Return true if there is no nested autodiff being executed. More...
 
static void stan::agrad::recover_memory ()
 Recover memory used for all variables for reuse. More...
 
static void stan::agrad::recover_memory_nested ()
 Recover only the memory used for the top nested call. More...
 
static void stan::agrad::start_nested ()
 Record the current position so that recover_memory_nested() can find it. More...
 
static size_t stan::agrad::nested_size ()
 

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