Expand description
Defines numeric arithmetic kernels on [PrimitiveArray
], such as add
Macrosยง
- date ๐
- neg_
checked ๐ - neg_
wrapping ๐ - op ๐Perform an infallible binary operation on potentially scalar inputs
- op_ref ๐Same as
op
but with a type hint for the returned array - timestamp ๐
- try_op ๐Perform a fallible binary operation on potentially scalar inputs
- try_
op_ ๐ref Same astry_op
but with a type hint for the returned array
Enumsยง
- Op ๐An enumeration of arithmetic operations
Traitsยง
- DateOp ๐Arithmetic trait for date arrays
- Interval
Op ๐Arithmetic trait for interval arrays - Timestamp
Op ๐Arithmetic trait for timestamp arrays
Functionsยง
- Perform
lhs + rhs
, returning an error on overflow - Perform
lhs + rhs
, wrapping on overflow for [DataType::is_integer
] - arithmetic_
op ๐Dispatch the givenop
to the appropriate specialized kernel - date_op ๐Perform arithmetic operation on a date array
- decimal_
op ๐Perform arithmetic operation on decimal arrays - Perform
lhs / rhs
- duration_
op ๐ - float_
op ๐Perform an arithmetic operation on floats - integer_
op ๐Perform an arithmetic operation on integers - interval_
op ๐Perform arithmetic operation on an interval array - Perform
lhs * rhs
, returning an error on overflow - Perform
lhs * rhs
, wrapping on overflow for [DataType::is_integer
] - Negates each element of
array
, returning an error on overflow - Negates each element of
array
, wrapping on overflow for [DataType::is_integer
] - Perform
lhs % rhs
- Perform
lhs - rhs
, returning an error on overflow - Perform
lhs - rhs
, wrapping on overflow for [DataType::is_integer
] - timestamp_
op ๐Perform arithmetic operation on a timestamp array