DOC: state that digamma only accepts float

This commit is contained in:
Jake VanderPlas 2021-06-08 10:47:27 -07:00
parent 3927946456
commit 22dbe80255

View File

@ -48,7 +48,8 @@ def betainc(a, b, x):
return lax.betainc(a, b, x)
@_wraps(osp_special.digamma, update_doc=False)
@_wraps(osp_special.digamma, lax_description="""\
The JAX version only accepts real-valued inputs.""")
def digamma(x):
x, = _promote_args_inexact("digamma", x)
return lax.digamma(x)