pub fn negate<T>(
array: &PrimitiveArray<T>
) -> Result<PrimitiveArray<T>, ArrowError>where
T: ArrowNumericType,
<T as ArrowPrimitiveType>::Native: ArrowNativeTypeOp,
Expand description
Perform -
operation on an array. If value is null then the result is also null.
This doesn’t detect overflow. Once overflowing, the result will wrap around.
For an overflow-checking variant, use negate_checked
instead.