jax.numpy.negative

jax.numpy.negative(x)

Numerical negative, element-wise.

LAX-backend implementation of 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