jax.scipy.special.gammasgn#
- jax.scipy.special.gammasgn(x)[source]#
Sign of the gamma function.
JAX implementation of
scipy.special.gammasgn
.\[\begin{split}\mathrm{gammasgn}(x) = \begin{cases} +1 & \Gamma(x) > 0 \\ -1 & \Gamma(x) < 0 \end{cases}\end{split}\]Where \(\Gamma\) is the
gamma()
function. Because \(\Gamma(x)\) is never zero, no condition is required for this case.- Parameters:
x (jax.typing.ArrayLike) – arraylike, real valued.
- Returns:
array containing the sign of the gamma function
- Return type:
See also
jax.scipy.special.gamma()
: the gamma functionjax.scipy.special.gammaln()
: the natural log of the gamma function