pub fn digamma_impl<P, E, V, const NR: usize, const NL: usize, const NP: usize, const NQ: usize>(
x_in: V,
t: &Digamma<E, NR, NL, NP, NQ>,
) -> Vwhere
P: Policy,
E: FloatElementWithBits,
V: FloatVectorWithBits<Element = E> + SpecializedSpecialMath<E>,Expand description
Shared digamma (psi) implementation for all real element types.
psi(x) = d/dx ln(Gamma(x)). The element-specific rational/asymptotic
coefficients are passed in so the f32 and f64 specializations can share this
body:
y/roots/p_12/q_12: the[1, 2]rationalpsi(x) = (x - root)(Y + R(x-1)), whererootis summed fromrootsvia staged subtraction to preserve bits.p_large: thex >= 10asymptotic expansion in1/(x-1)^2.