1#ifndef STAN_MATH_REV_FUN_INV_ERFC_HPP
2#define STAN_MATH_REV_FUN_INV_ERFC_HPP
29 auto precomp_inv_erfc =
inv_erfc(a.val());
31 precomp_inv_erfc, [a, precomp_inv_erfc](
auto& vi)
mutable {
37template <
typename T, require_matrix_t<T>* =
nullptr>
41 precomp_inv_erfc, [a, precomp_inv_erfc](
auto& vi)
mutable {
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...
static constexpr double LOG_TWO
The natural logarithm of 2, .
arena_t< T > to_arena(const T &a)
Converts given argument into a type that either has any dynamic allocation on AD stack or schedules i...
static constexpr double LOG_SQRT_PI
The natural logarithm of the square root of , .
fvar< T > inv_erfc(const fvar< T > &x)
fvar< T > square(const fvar< T > &x)
fvar< T > exp(const fvar< T > &x)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...