Function arrow_arith::arithmetic::multiply_scalar
source · pub fn multiply_scalar<T>(
array: &PrimitiveArray<T>,
scalar: T::Native
) -> Result<PrimitiveArray<T>, ArrowError>where
T: ArrowNumericType,
T::Native: ArrowNativeTypeOp,
Expand description
Multiply every value in an array by a scalar. If any value in the array 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 multiply_scalar_checked
instead.