mlx.core.negative

目录

mlx.core.negative#

negative(a: array, /, *, stream: None | Stream | Device = None) array#

Element-wise negation.

参数:

a (array) -- Input array.

返回:

The negative of a.

返回类型:

array