negativeΒΆ

Computes the numerical negative of each element x_i (i.e., y_i = -x_i) of the input array x.

Abstract Signature:

negative(x: array)

JAX (Core)

API: jax.numpy.negative
Strategy: Direct Mapping

NumPy

API: numpy.ma.core.negative
Strategy: Direct Mapping

Keras

API: keras.ops.numpy.negative
Strategy: Direct Mapping

TensorFlow

API: tf.negative
Strategy: Direct Mapping

Apple MLX

API: mlx.core.negative
Strategy: Direct Mapping

Flax NNX

API: jax.numpy.negative
Strategy: Direct Mapping