Skip to main content

lgamma_r_impl

Function lgamma_r_impl 

Source
pub fn lgamma_r_impl<P, E, V, const N: usize>(
    z_in: V,
    l: &Lanczos<E, N>,
) -> (V, V)
Expand description

Shared lgamma_r implementation (log-gamma with its separate sign) for all real element types, via the exp(g)-scaled Lanczos sum.

f32 short-circuits to a cheaper Pade approximant below Average precision; that branch lives at the call site and never reaches here.

Last built: 2026-09-08 21:35:55 UTC