jax.numpy.modf
Warning
This page was created from a pull request (#9655).
jax.numpy.modfΒΆ
- jax.numpy.modf(x, out=None)[source]ΒΆ
Return the fractional and integral parts of an array, element-wise.
LAX-backend implementation of
modf()
.Original docstring below.
The fractional and integral parts are negative if the given number is negative.
- Parameters
x (array_like) β Input array.
- Returns
y1 (ndarray) β Fractional part of x. This is a scalar if x is a scalar.
y2 (ndarray) β Integral part of x. This is a scalar if x is a scalar.