Merge pull request #10978 from jakevdp:x64-modf

PiperOrigin-RevId: 452867169
This commit is contained in:
jax authors 2022-06-03 16:38:30 -07:00
commit b665c43799

View File

@ -591,6 +591,7 @@ def real(val):
@jit
def modf(x, out=None):
_check_arraylike("modf", x)
x, = _promote_dtypes_inexact(x)
if out is not None:
raise NotImplementedError("The 'out' argument to jnp.modf is not supported.")
whole = _where(lax.ge(x, lax_internal._zero(x)), floor(x), ceil(x))