jax.numpy.reciprocal

jax.numpy.reciprocal(x)[source]

Return the reciprocal of the argument, element-wise.

LAX-backend implementation of reciprocal().

Original docstring below.

Calculates 1/x.

Parameters

x (array_like) – Input array.

Returns

y – Return array. This is a scalar if x is a scalar.

Return type

ndarray