Automatic Differentiation
 
Loading...
Searching...
No Matches
print_stack.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_CORE_PRINT_STACK_HPP
2#define STAN_MATH_REV_CORE_PRINT_STACK_HPP
3
6#include <ostream>
7
8namespace stan {
9namespace math {
10
20inline void print_stack(std::ostream& o) {
21 o << "STACK, size=" << ChainableStack::instance_->var_stack_.size()
22 << std::endl;
23}
24
25} // namespace math
26} // namespace stan
27#endif
void print_stack(std::ostream &o)
Prints the autodiff variable stack.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
static thread_local AutodiffStackStorage * instance_