jax.numpy.negative

Contents

jax.numpy.negative#

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

Numerical negative, element-wise.

LAX-backend implementation of numpy.negative().

Original docstring below.

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