mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
Fix incorrect wrapped docstring of jax.scipy.special.gamma
Fixes the docstring `jax.scipy.special.gamma`, which was wrapping `scipy.special.gammaln` by mistake. Also adds a note that the function currently only accepts real inputs.
This commit is contained in:
parent
5c2070c204
commit
a835cafdad
@ -42,7 +42,8 @@ def gammaln(x: ArrayLike) -> Array:
|
||||
return lax.lgamma(x)
|
||||
|
||||
|
||||
@_wraps(osp_special.gammaln, module='scipy.special')
|
||||
@_wraps(osp_special.gamma, module='scipy.special', lax_description="""\
|
||||
The JAX version only accepts real-valued inputs.""")
|
||||
def gamma(x: ArrayLike) -> Array:
|
||||
x, = promote_args_inexact("gamma", x)
|
||||
return lax.exp(lax.lgamma(x))
|
||||
|
Loading…
x
Reference in New Issue
Block a user