Function arrow::compute::multiply_scalar_dyn
source · pub fn multiply_scalar_dyn<T>(
array: &dyn Array,
scalar: <T as ArrowPrimitiveType>::Native
) -> Result<Arc<dyn Array + 'static>, ArrowError>where
T: ArrowNumericType,
<T as ArrowPrimitiveType>::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. The given array must be a PrimitiveArray
of the type same as
the scalar, or a DictionaryArray
of the value type same as the scalar.
This doesn’t detect overflow. Once overflowing, the result will wrap around.
For an overflow-checking variant, use multiply_scalar_checked_dyn
instead.