Trait polars_compute::arithmetic::ArithmeticKernel

source ·
pub trait ArithmeticKernel: Sized + Array {
    type Scalar;
    type TrueDivT: NativeType;

Show 24 methods // Required methods fn wrapping_abs(self) -> Self; fn wrapping_neg(self) -> Self; fn wrapping_add(self, rhs: Self) -> Self; fn wrapping_sub(self, rhs: Self) -> Self; fn wrapping_mul(self, rhs: Self) -> Self; fn wrapping_floor_div(self, rhs: Self) -> Self; fn wrapping_trunc_div(self, rhs: Self) -> Self; fn wrapping_mod(self, rhs: Self) -> Self; fn wrapping_add_scalar(self, rhs: Self::Scalar) -> Self; fn wrapping_sub_scalar(self, rhs: Self::Scalar) -> Self; fn wrapping_sub_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self; fn wrapping_mul_scalar(self, rhs: Self::Scalar) -> Self; fn wrapping_floor_div_scalar(self, rhs: Self::Scalar) -> Self; fn wrapping_floor_div_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self; fn wrapping_trunc_div_scalar(self, rhs: Self::Scalar) -> Self; fn wrapping_trunc_div_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self; fn wrapping_mod_scalar(self, rhs: Self::Scalar) -> Self; fn wrapping_mod_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self; fn true_div(self, rhs: Self) -> PrimitiveArray<Self::TrueDivT>; fn true_div_scalar( self, rhs: Self::Scalar, ) -> PrimitiveArray<Self::TrueDivT>; fn true_div_scalar_lhs( lhs: Self::Scalar, rhs: Self, ) -> PrimitiveArray<Self::TrueDivT>; // Provided methods fn legacy_div(self, rhs: Self) -> Self { ... } fn legacy_div_scalar(self, rhs: Self::Scalar) -> Self { ... } fn legacy_div_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self { ... }
}

Required Associated Types§

Required Methods§

source

fn wrapping_abs(self) -> Self

source

fn wrapping_neg(self) -> Self

source

fn wrapping_add(self, rhs: Self) -> Self

source

fn wrapping_sub(self, rhs: Self) -> Self

source

fn wrapping_mul(self, rhs: Self) -> Self

source

fn wrapping_floor_div(self, rhs: Self) -> Self

source

fn wrapping_trunc_div(self, rhs: Self) -> Self

source

fn wrapping_mod(self, rhs: Self) -> Self

source

fn wrapping_add_scalar(self, rhs: Self::Scalar) -> Self

source

fn wrapping_sub_scalar(self, rhs: Self::Scalar) -> Self

source

fn wrapping_sub_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self

source

fn wrapping_mul_scalar(self, rhs: Self::Scalar) -> Self

source

fn wrapping_floor_div_scalar(self, rhs: Self::Scalar) -> Self

source

fn wrapping_floor_div_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self

source

fn wrapping_trunc_div_scalar(self, rhs: Self::Scalar) -> Self

source

fn wrapping_trunc_div_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self

source

fn wrapping_mod_scalar(self, rhs: Self::Scalar) -> Self

source

fn wrapping_mod_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self

source

fn true_div(self, rhs: Self) -> PrimitiveArray<Self::TrueDivT>

source

fn true_div_scalar(self, rhs: Self::Scalar) -> PrimitiveArray<Self::TrueDivT>

source

fn true_div_scalar_lhs( lhs: Self::Scalar, rhs: Self, ) -> PrimitiveArray<Self::TrueDivT>

Provided Methods§

source

fn legacy_div(self, rhs: Self) -> Self

source

fn legacy_div_scalar(self, rhs: Self::Scalar) -> Self

source

fn legacy_div_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T: HasPrimitiveArithmeticKernel> ArithmeticKernel for PrimitiveArray<T>

§

type Scalar = T

§

type TrueDivT = <T as PrimitiveArithmeticKernelImpl>::TrueDivT

source§

fn wrapping_abs(self) -> Self

source§

fn wrapping_neg(self) -> Self

source§

fn wrapping_add(self, rhs: Self) -> Self

source§

fn wrapping_sub(self, rhs: Self) -> Self

source§

fn wrapping_mul(self, rhs: Self) -> Self

source§

fn wrapping_floor_div(self, rhs: Self) -> Self

source§

fn wrapping_trunc_div(self, rhs: Self) -> Self

source§

fn wrapping_mod(self, rhs: Self) -> Self

source§

fn wrapping_add_scalar(self, rhs: Self::Scalar) -> Self

source§

fn wrapping_sub_scalar(self, rhs: Self::Scalar) -> Self

source§

fn wrapping_sub_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self

source§

fn wrapping_mul_scalar(self, rhs: Self::Scalar) -> Self

source§

fn wrapping_floor_div_scalar(self, rhs: Self::Scalar) -> Self

source§

fn wrapping_floor_div_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self

source§

fn wrapping_trunc_div_scalar(self, rhs: Self::Scalar) -> Self

source§

fn wrapping_trunc_div_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self

source§

fn wrapping_mod_scalar(self, rhs: Self::Scalar) -> Self

source§

fn wrapping_mod_scalar_lhs(lhs: Self::Scalar, rhs: Self) -> Self

source§

fn true_div(self, rhs: Self) -> PrimitiveArray<Self::TrueDivT>

source§

fn true_div_scalar(self, rhs: Self::Scalar) -> PrimitiveArray<Self::TrueDivT>

source§

fn true_div_scalar_lhs( lhs: Self::Scalar, rhs: Self, ) -> PrimitiveArray<Self::TrueDivT>

Implementors§