nested_size.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_CORE_NESTED_SIZE_HPP
2 #define STAN_MATH_REV_CORE_NESTED_SIZE_HPP
3 
5 #include <cstdlib>
6 
7 namespace stan {
8 namespace math {
9 
10 static inline size_t nested_size() {
11  return ChainableStack::instance().var_stack_.size()
13 }
14 
15 } // namespace math
16 } // namespace stan
17 #endif
static size_t nested_size()
Definition: nested_size.hpp:10
static AutodiffStackStorage & instance()