Automatic Differentiation
 
Loading...
Searching...
No Matches
nested_rev_autodiff.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_REV_CORE_nested_rev_autodiff_HPP
2#define STAN_MATH_REV_CORE_nested_rev_autodiff_HPP
3
7
8namespace stan {
9namespace math {
10
28 public:
30
32
33 // Prevent undesirable operations
36 void* operator new(std::size_t) = delete;
37
43};
44
45} // namespace math
46} // namespace stan
47#endif
nested_rev_autodiff & operator=(const nested_rev_autodiff &)=delete
void set_zero_all_adjoints()
Reset all adjoint values in this nested stack to zero.
nested_rev_autodiff(const nested_rev_autodiff &)=delete
A class following the RAII idiom to start and recover nested autodiff scopes.
static void recover_memory_nested()
Recover only the memory used for the top nested call.
static void start_nested()
Record the current position so that recover_memory_nested() can find it.
static void set_zero_all_adjoints_nested()
Reset all adjoint values in the top nested portion of the stack to zero.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9