/// Overflowing multiplication of two primitive arrays. If the result from the
/// mul overflows, the result for the operation will be an array with
/// overflowed values and a validity array indicating the overflowing elements
/// from the array.
///
/// # Examples
/// ```
/// use arrow2::compute::arithmetics::basic::overflowing_mul;
/// use arrow2::array::Int8Array;
///
/// let a = Int8Array::from(&[Some(1i8), Some(-100i8)]);
/// let b = Int8Array::from(&[Some(1i8), Some(100i8)]);
/// let (result, overflow) = overflowing_mul(&a, &b).unwrap();
/// let expected = Int8Array::from(&[Some(1i8), Some(-16i8)]);
/// assert_eq!(result, expected);
/// ```
Overflowing multiplication of two primitive arrays. If the result from the
mul overflows, the result for the operation will be an array with
overflowed values and a validity array indicating the overflowing elements
from the array.
Overflowing multiplication of two primitive arrays . If the result from the mul overflows the result for the operation will be an array with overflowed values and a validity array indicating the overflowing elements from the array .
pub fn overflowing_mul<T>(
    lhs: &PrimitiveArray<T>,
    rhs: &PrimitiveArray<T>,
) -> Result<(PrimitiveArray<T>, Bitmap)>
where
    T: NativeType + OverflowingMul<Output = T>,
{
    check_same_type(lhs, rhs)?;
    let op = move |a: T, b: T| a.overflowing_mul(&b);
    binary_with_bitmap(lhs, rhs, lhs.data_type().clone(), op)
}
pub fn overflowing_mul < T > ( lhs : & PrimitiveArray < T > , rhs : & PrimitiveArray < T > , ) -> Result < ( PrimitiveArray < T > , Bitmap ) > where T : NativeType + OverflowingMul < Output = T > , { check_same_type ( lhs , rhs ) ? ; let op = move | a : T , b : T | a . overflowing_mul ( & b ) ; binary_with_bitmap ( lhs , rhs , lhs . data_type ( ) . clone ( ) , op ) }
Overflowing multiplication of two primitive arrays.
Overflowing multiplication of two primitive arrays .
lhs
&PrimitiveArray<T>
rhs
&PrimitiveArray<T>
examples
```
use arrow2::compute::arithmetics::basic::overflowing_mul;
use arrow2::array::Int8Array.


` ` ` use arrow2 :: compute :: arithmetics :: basic :: overflowing_mul ; use arrow2 :: array :: Int8Array .