All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
empty_nested.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_REV_CORE_EMPTY_NESTED_HPP
#define STAN_MATH_REV_CORE_EMPTY_NESTED_HPP
#include <stan/math/rev/core/chainable.hpp>
#include <stan/math/rev/core/chainable_alloc.hpp>
#include <stan/math/rev/core/chainablestack.hpp>
namespace stan {
namespace math {
static inline bool empty_nested() {
return ChainableStack::nested_var_stack_sizes_.empty();
}
}
}
#endif
stan::math::empty_nested
static bool empty_nested()
Return true if there is no nested autodiff being executed.
Definition: empty_nested.hpp:14
chainable.hpp
chainable_alloc.hpp
stan::math::AutodiffStackStorage::nested_var_stack_sizes_
static std::vector< size_t > nested_var_stack_sizes_
Definition: autodiffstackstorage.hpp:19
chainablestack.hpp

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