jax.numpy.positive

Contents

jax.numpy.positive#

jax.numpy.positive(x, /)[source]#

Numerical positive, element-wise.

LAX-backend implementation of numpy.positive().

Original docstring below.

Added in version 1.13.0.

Parameters:

x (array_like or scalar) – Input array.

Returns:

y – Returned array or scalar: y = +x. This is a scalar if x is a scalar.

Return type:

ndarray or scalar