Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ execute()

template<typename F , typename... Args>
decltype(auto) stan::math::ScopedChainableStack::execute ( F &&  f,
Args &&...  args 
)
inline

Execute in the current thread a function and write the AD tape to local_stack_ of this instance.

The function may return any type.

Template Parameters
Ffunctor to evaluate
Parameters
finstance of functor
argsarguments passed to functor
Returns
Result of evaluated functor

Definition at line 68 of file scoped_chainablestack.hpp.