1#ifndef STAN_MATH_REV_FUN_LOG_INV_LOGIT_HPP
2#define STAN_MATH_REV_FUN_LOG_INV_LOGIT_HPP
20template <
typename T, require_arithmetic_t<T>* =
nullptr>
23 u.adj() += vi.adj() * inv_logit(-u.val());
35template <
typename T, require_eigen_t<T>* =
nullptr>
38 u.adj().array() += vi.adj().array() * inv_logit(-u.val()).array();
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...
fvar< T > log_inv_logit(const fvar< T > &x)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...