jax.scipy.special.loggamma

Contents

jax.scipy.special.loggamma#

jax.scipy.special.loggamma(x)[source]#

Principal branch of the logarithm of the gamma function.

JAX implementation of scipy.special.loggamma.

Defined to be \(\log(\Gamma(x))\) for \(x > 0\) and extended to the complex plane by analytic continuation. The function has a single branch cut on the negative real axis.

Parameters:

x (ArrayLike) – arraylike, real or complex valued.

Returns:

array containing the values of the loggamma function. For complex inputs, the output is complex-valued.

Return type:

Array

See also