Loading [MathJax]/jax/output/HTML-CSS/config.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ recover_memory_nested()

static void stan::math::recover_memory_nested ( )
inlinestatic

Recover only the memory used for the top nested call.

If there is nothing on the nested stack, then a std::logic_error exception is thrown.

It is preferred to use the nested_rev_autodiff class for nested autodiff as it handles recovery of memory automatically.

Exceptions
std::logic_errorif empty_nested() returns true

Definition at line 23 of file recover_memory_nested.hpp.