mlx.core.negative

目錄

mlx.core.negative#

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

Element-wise negation.

參數:

a (array) -- 輸入陣列。

回傳值:

The negative of a.

回傳值型別:

array