1#ifndef STAN_MATH_REV_FUN_ADJOINT_OF_HPP
2#define STAN_MATH_REV_FUN_ADJOINT_OF_HPP
17 throw std::runtime_error(
18 "internal::nonexisting_adjoint::operator+= should never be called! "
19 "Please file a bug report.");
23 throw std::runtime_error(
24 "internal::nonexisting_adjoint::operator-= should never be called! "
25 "Please file a bug report.");
36template <
typename T, require_var_t<T>* =
nullptr>
49template <
typename T, require_not_var_t<T>* =
nullptr>
auto & adjoint_of(const T &x)
Returns a reference to a variable's adjoint.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
nonexisting_adjoint operator+(const T &)
nonexisting_adjoint operator+=(T)
nonexisting_adjoint operator-=(T)