Natural log of the gamma function .
Implemented as a pure composite over engine primitives — uses the
Lanczos approximation (Numerical Recipes, , 9 series
coefficients). Relative error stays below 1.5e-15 for real
x > 0 in float64. Autograd flows through automatically because
every step is an engine op.
Parameters
Real input. Defined for
x > 0; behaviour on non-positive
reals is implementation-defined (the series diverges).Returns
TensorSame shape as x.
See Also
digamma—derivative .