22#ifndef UTILS_MATH_AC_ERF_PART_HPP
23#define UTILS_MATH_AC_ERF_PART_HPP
30 T
const constexpr a1 = 0.254829592;
31 T
const constexpr a2 = -0.284496736;
32 T
const constexpr a3 = 1.421413741;
33 T
const constexpr a4 = -1.453152027;
34 T
const constexpr a5 = 1.061405429;
35 T
const constexpr p = 0.3275911;
37 auto const t = 1.0 / (1.0 + p * d);
39 return t * (a1 + t * (a2 + t * (
a3 + t * (
a4 + t *
a5))));
cudaStream_t stream[1]
CUDA streams for parallel computing on CPU and GPU.
constexpr T AS_erfc_part(T d)
Approximate by applying a formula from chapter 7.