1#ifndef STAN_MATH_REV_CORE_CALLBACK_VARI_HPP
2#define STAN_MATH_REV_CORE_CALLBACK_VARI_HPP
11template <
typename T,
typename F>
40template <
typename T,
typename F>
44 std::move(value), std::forward<F>(functor));
60template <
typename T,
typename F>
require_t< std::is_same< std::decay_t< T >, std::decay_t< S > > > require_same_t
Require types T and S satisfies std::is_same.
var_value< plain_type_t< T > > make_callback_var(T &&value, F &&functor)
Creates a new var initialized with a callback_vari with a given value and reverse-pass callback funct...
internal::callback_vari< plain_type_t< T >, F > * make_callback_vari(T &&value, F &&functor)
Creates a new vari with given value and a callback that implements the reverse pass (chain).
typename plain_type< T >::type plain_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
callback_vari(S &&value, F &&rev_functor)