Negates an array element-wise. You can also use the unary - operator.
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.
See also
prim_negate() for the underlying primitive.