Negates an array element-wise.
Arguments
- x
(
arrayish)
One input. Can be any numeric data type. An R value materializes at its default data type.
Value
(arrayish)
Has the input's shape and data type.
StableHLO
Lowers to hlo_negate(), specified under
negate.
See also
nv_negate(), unary -