Negates an array element-wise.
Arguments
- x
(
arrayish)
Arrayish value of data type integer or floating-point.
Value
arrayish
Has the same shape and data type as the input.
It is ambiguous if the input is ambiguous.
StableHLO
Lowers to hlo_negate().
See also
nv_negate(), unary -