Expand description
Host-side scalar special functions shared by the CPU parity references of the GPU backends.
The CUDA kernels emit their own NVRTC-visible numerics (see
crate::numerics_device); this module is the matching host side
used by the CPU parity oracles (bms_flex_row’s test oracle) and the
CPU reference path (pirls_row’s probit CDF). Keeping a single definition
here means the host erfc cannot drift between backends.
Constants§
- INV_
SQRT_ 2PI 1/√(2π), matchingINV_SQRT_2PIin the kernel source bit-for-bit.- INV_
SQRT_ PI 1/√π, matchinginv_sqrt_piin the kernel source bit-for-bit.- LN_2
ln(2), matchingLN_2in the kernel source bit-for-bit.- SQRT_2
√2, matchingSQRT_2in the kernel source bit-for-bit.- SQRT_
2_ OVER_ PI √(2/π), matchingsqrt_2_over_piin the kernel source bit-for-bit.
Functions§
- erfc
- Complementary error function
erfc(x) = 1 − erf(x)evaluated on the host.