1#ifndef STAN_MATH_REV_FUN_ERFCX_HPP
2#define STAN_MATH_REV_FUN_ERFCX_HPP
55 typename T, require_var_t<T>* =
nullptr,
56 require_all_not_nonscalar_prim_or_rev_kernel_expression_t<T>* =
nullptr>
T erfcx_derivative(const T &x, const T &value)
Derivative of erfcx, 2 * x * erfcx(x) - 2 / sqrt(pi).
T as_array_or_scalar(T &&v)
Returns specified input value.
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...
auto apply_scalar_binary(F &&f, T1 &&x, T2 &&y)
Base template function for vectorization of binary scalar functions defined by applying a functor to ...
fvar< T > erfcx(const fvar< T > &x)
Return the scaled complementary error function of the argument.
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...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...