Automatic Differentiation
 
Loading...
Searching...
No Matches
erfcx.hpp File Reference
#include <stan/math/opencl/stringify.hpp>
#include <string>

Go to the source code of this file.

Namespaces

namespace  stan
 The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation from C or the boost::math::lgamma implementation.
 
namespace  stan::math
 Matrices and templated mathematical functions.
 
namespace  stan::math::opencl_kernels
 

Functions

double stan::math::opencl_kernels::erfcx_tail_correction (double u)
 Correction factor of the Cody (1969) third-interval rational: erfcx(x) = (INV_SQRT_PI + u * correction(u)) / x, u = 1 / x^2.
 
double stan::math::opencl_kernels::erfcx_cody_tail (double x)
 Cody (1969) third-interval rational, for x >= 4.
 
double stan::math::opencl_kernels::erfcx_derivative (double x, double value)
 Derivative of erfcx, 2 * x * erfcx(x) - 2 / sqrt(pi).
 
double stan::math::opencl_kernels::erfcx_cody_middle (double y)
 Cody (1969) second-interval rational, for 0.46875 <= x <= 4.
 
double stan::math::opencl_kernels::erfcx_small (double x)
 Degree-18 Chebyshev-economized expansion of erfcx about zero, for |x| < 0.46875.
 
double stan::math::opencl_kernels::erfcx (double x)
 Return the scaled complementary error function exp(x * x) * erfc(x) of the kernel generator expression.