Math

Trait Math 

Source
pub trait Math<T> {
    // Provided methods
    fn u128_dot(&self, other: &Self) -> u128 { ... }
    fn u64_dot(&self, other: &Self) -> u64 { ... }
    fn u32_dot(&self, other: &Self) -> u32 { ... }
    fn u16_dot(&self, other: &Self) -> u16 { ... }
    fn u8_dot(&self, other: &Self) -> u8 { ... }
    fn i128_dot(&self, other: &Self) -> i128 { ... }
    fn i64_dot(&self, other: &Self) -> i64 { ... }
    fn i32_dot(&self, other: &Self) -> i32 { ... }
    fn i16_dot(&self, other: &Self) -> i16 { ... }
    fn i8_dot(&self, other: &Self) -> i8 { ... }
    fn f64_dot(&self, other: &Self) -> f64 { ... }
    fn f32_dot(&self, other: &Self) -> f32 { ... }
}

Provided Methods§

Source

fn u128_dot(&self, other: &Self) -> u128

Source

fn u64_dot(&self, other: &Self) -> u64

Source

fn u32_dot(&self, other: &Self) -> u32

Source

fn u16_dot(&self, other: &Self) -> u16

Source

fn u8_dot(&self, other: &Self) -> u8

Source

fn i128_dot(&self, other: &Self) -> i128

Source

fn i64_dot(&self, other: &Self) -> i64

Source

fn i32_dot(&self, other: &Self) -> i32

Source

fn i16_dot(&self, other: &Self) -> i16

Source

fn i8_dot(&self, other: &Self) -> i8

Source

fn f64_dot(&self, other: &Self) -> f64

Source

fn f32_dot(&self, other: &Self) -> f32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Math<T> for DefaultSparseVec<T>
where T: Num + Default + PartialEq + Clone + AddAssign + Mul<Output = T> + Into<u64>,