jax.numpy.frexp
Warning
This page was created from a pull request (#9655).
jax.numpy.frexpΒΆ
- jax.numpy.frexp(x)[source]ΒΆ
Decompose the elements of x into mantissa and twos exponent.
LAX-backend implementation of
frexp()
.Original docstring below.
Returns (mantissa, exponent), where x = mantissa * 2**exponent`. The mantissa lies in the open interval(-1, 1), while the twos exponent is a signed integer.
- Parameters
x (array_like) β Array of numbers to be decomposed.
- Returns
mantissa (ndarray) β Floating values between -1 and 1. This is a scalar if x is a scalar.
exponent (ndarray) β Integer exponents of 2. This is a scalar if x is a scalar.