Module google_cloud_bigquery::storage::compute::kernels::arithmetic
Expand description
Defines basic arithmetic kernels for PrimitiveArrays.
These kernels can leverage SIMD if available on your system. Currently no runtime
detection is provided, you should enable the specific SIMD intrinsics using
RUSTFLAGS="-C target-feature=+avx2" for example. See the documentation
here for more information.
Functions
- Perform
left + rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left + rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left + rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left + rightoperation on two arrays. If either left or right value is null then the result is also null. - Add every value in an array by a scalar. If any value in the array is null then the result is also null.
- Add every value in an array by a scalar. If any value in the array is null then the result is also null.
- Add 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
PrimitiveArrayof the type same as the scalar, or aDictionaryArrayof the value type same as the scalar. - Add 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
PrimitiveArrayof the type same as the scalar, or aDictionaryArrayof the value type same as the scalar. - Perform
left / rightoperation on two arrays without checking for division by zero or overflow. - Perform
left / rightoperation on two arrays. If either left or right value is null then the result is also null. If any right hand value is zero then the result of this operation will beErr(ArrowError::DivideByZero). - Perform
left / rightoperation on two arrays. If either left or right value is null then the result is also null. If any right hand value is zero then the result of this operation will beErr(ArrowError::DivideByZero). - Perform
left / rightoperation on two arrays. If either left or right value is null then the result is also null. If any right hand value is zero then the result of this operation will beErr(ArrowError::DivideByZero). - Perform
left / rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left / rightoperation on two arrays. If either left or right value is null then the result is also null. - Divide every value in an array by a scalar. If any value in the array is null then the result is also null. If the scalar is zero then the result of this operation will be
Err(ArrowError::DivideByZero). - Divide every value in an array by a scalar. If any value in the array is null then the result is also null. If the scalar is zero then the result of this operation will be
Err(ArrowError::DivideByZero). The given array must be aPrimitiveArrayof the type same as the scalar, or aDictionaryArrayof the value type same as the scalar. - Divide every value in an array by a scalar. If any value in the array is null then the result is also null. If the scalar is zero then the result of this operation will be
Err(ArrowError::DivideByZero). The given array must be aPrimitiveArrayof the type same as the scalar, or aDictionaryArrayof the value type same as the scalar. - Divide 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
PrimitiveArrayof the type same as the scalar, or aDictionaryArrayof the value type same as the scalar. - Helper function to perform math lambda function on values from two arrays. If either left or right value is null then the output value is also null, so
1 + nullisnull. - Perform
left % rightoperation on two arrays. If either left or right value is null then the result is also null. If any right hand value is zero then the result of this operation will beErr(ArrowError::DivideByZero). - Perform
left % rightoperation on two arrays. If either left or right value is null then the result is also null. If any right hand value is zero then the result of this operation will beErr(ArrowError::DivideByZero). - Modulus every value in an array by a scalar. If any value in the array is null then the result is also null. If the scalar is zero then the result of this operation will be
Err(ArrowError::DivideByZero). - Modulus every value in an array by a scalar. If any value in the array is null then the result is also null. If the scalar is zero then the result of this operation will be
Err(ArrowError::DivideByZero). - Perform
left * rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left * rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left * rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left * rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left * rightoperation on two decimal arrays. If either left or right value is null then the result is also null. - Perform
left * rightoperation on two decimal arrays. If either left or right value is null then the result is also null. - Multiply every value in an array by a scalar. If any value in the array is null then the result is also null.
- Multiply every value in an array by a scalar. If any value in the array is null then the result is also null.
- Subtract 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
PrimitiveArrayof the type same as the scalar, or aDictionaryArrayof the value type same as the scalar. - 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
PrimitiveArrayof the type same as the scalar, or aDictionaryArrayof the value type same as the scalar. - Perform
-operation on an array. If value is null then the result is also null. - Perform
-operation on an array. If value is null then the result is also null. - Perform
left - rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left - rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left - rightoperation on two arrays. If either left or right value is null then the result is also null. - Perform
left - rightoperation on two arrays. If either left or right value is null then the result is also null. - Subtract every value in an array by a scalar. If any value in the array is null then the result is also null.
- Subtract every value in an array by a scalar. If any value in the array is null then the result is also null.
- Subtract 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
PrimitiveArrayof the type same as the scalar, or aDictionaryArrayof the value type same as the scalar. - Subtract 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
PrimitiveArrayof the type same as the scalar, or aDictionaryArrayof the value type same as the scalar.