pub fn divide<T>(
left: &PrimitiveArray<T>,
right: &PrimitiveArray<T>
) -> Result<PrimitiveArray<T>, ArrowError>where
T: ArrowNumericType,
<T as ArrowPrimitiveType>::Native: ArrowNativeTypeOp,
Expand description
Perform left / right
operation on two arrays without checking for
division by zero or overflow.
For floating point types, overflow and division by zero follows normal floating point rules
For integer types overflow will wrap around. Division by zero will currently panic, although this may be subject to change see https://github.com/apache/arrow-rs/issues/2647
If either left or right value is null then the result is also null.
For an overflow-checking variant, use divide_checked
instead.