Stan Math Library
4.9.0
Automatic Differentiation
Loading...
Searching...
No Matches
empty_nested.hpp
Go to the documentation of this file.
1
#ifndef STAN_MATH_REV_CORE_EMPTY_NESTED_HPP
2
#define STAN_MATH_REV_CORE_EMPTY_NESTED_HPP
3
4
#include <
stan/math/rev/core/chainablestack.hpp
>
5
6
namespace
stan
{
7
namespace
math {
8
12
static
inline
bool
empty_nested
() {
13
return
ChainableStack::instance_
->
nested_var_stack_sizes_
.empty();
14
}
15
16
}
// namespace math
17
}
// namespace stan
18
#endif
chainablestack.hpp
stan::math::empty_nested
static bool empty_nested()
Return true if there is no nested autodiff being executed.
Definition
empty_nested.hpp:12
stan
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition
unit_vector_constrain.hpp:15
stan::math::AutodiffStackSingleton::AutodiffStackStorage::nested_var_stack_sizes_
std::vector< size_t > nested_var_stack_sizes_
Definition
autodiffstackstorage.hpp:110
stan::math::AutodiffStackSingleton::instance_
static thread_local AutodiffStackStorage * instance_
Definition
autodiffstackstorage.hpp:118
stan
math
rev
core
empty_nested.hpp
[
Stan Home Page
]
© 2011–2019, Stan Development Team.