Trait polars_core::chunked_array::arithmetic::ArrayArithmetics   
source · pub trait ArrayArithmeticswhere
    Self: NativeType,{
    // Required methods
    fn add(
        lhs: &PrimitiveArray<Self>,
        rhs: &PrimitiveArray<Self>
    ) -> PrimitiveArray<Self>;
    fn sub(
        lhs: &PrimitiveArray<Self>,
        rhs: &PrimitiveArray<Self>
    ) -> PrimitiveArray<Self>;
    fn mul(
        lhs: &PrimitiveArray<Self>,
        rhs: &PrimitiveArray<Self>
    ) -> PrimitiveArray<Self>;
    fn div(
        lhs: &PrimitiveArray<Self>,
        rhs: &PrimitiveArray<Self>
    ) -> PrimitiveArray<Self>;
    fn div_scalar(
        lhs: &PrimitiveArray<Self>,
        rhs: &Self
    ) -> PrimitiveArray<Self>;
    fn rem(
        lhs: &PrimitiveArray<Self>,
        rhs: &PrimitiveArray<Self>
    ) -> PrimitiveArray<Self>;
    fn rem_scalar(
        lhs: &PrimitiveArray<Self>,
        rhs: &Self
    ) -> PrimitiveArray<Self>;
}Required Methods§
fn add( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn sub( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn mul( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
fn rem( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn rem_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
Object Safety§
This trait is not object safe.
Implementations on Foreign Types§
source§impl ArrayArithmetics for f32
 
impl ArrayArithmetics for f32
fn add( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn sub( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn mul( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
fn rem( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn rem_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
source§impl ArrayArithmetics for f64
 
impl ArrayArithmetics for f64
fn add( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn sub( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn mul( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
fn rem( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn rem_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
source§impl ArrayArithmetics for i8
 
impl ArrayArithmetics for i8
fn add( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn sub( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn mul( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
fn rem( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn rem_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
source§impl ArrayArithmetics for i16
 
impl ArrayArithmetics for i16
fn add( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn sub( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn mul( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
fn rem( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn rem_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
source§impl ArrayArithmetics for i32
 
impl ArrayArithmetics for i32
fn add( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn sub( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn mul( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
fn rem( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn rem_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
source§impl ArrayArithmetics for i64
 
impl ArrayArithmetics for i64
fn add( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn sub( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn mul( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn div_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
fn rem( lhs: &PrimitiveArray<Self>, rhs: &PrimitiveArray<Self> ) -> PrimitiveArray<Self>
fn rem_scalar(lhs: &PrimitiveArray<Self>, rhs: &Self) -> PrimitiveArray<Self>
source§impl ArrayArithmetics for i128
Available on crate feature dtype-decimal only. 
impl ArrayArithmetics for i128
Available on crate feature 
dtype-decimal only.