jax.numpy.true_divide

Contents

jax.numpy.true_divide#

jax.numpy.true_divide(x1, x2, /)[source]#

Divide arguments element-wise.

LAX-backend implementation of numpy.divide().

Original docstring below.

Parameters:
  • x1 (array_like) – Dividend array.

  • x2 (array_like) – Divisor array. If x1.shape != x2.shape, they must be broadcastable to a common shape (which becomes the shape of the output).

Returns:

y – The quotient x1/x2, element-wise. This is a scalar if both x1 and x2 are scalars.

Return type:

ndarray or scalar