1#ifndef STAN_MATH_REV_FUN_ERFC_HPP
2#define STAN_MATH_REV_FUN_ERFC_HPP
51 a.adj() -= vi.adj() * precomp_erfc;
55template <
typename T, require_matrix_t<T>* =
nullptr>
60 a.adj().array() -= vi.adj().array() * precomp_erf;
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...
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...
fvar< T > erfc(const fvar< T > &x)
static constexpr double TWO_OVER_SQRT_PI
The value of 2 over the square root of , .
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...