[][src]Trait dbap::Scalar

pub trait Scalar: Sized + Copy + From<DefaultScalar> + PartialEq + Add<Self, Output = Self> + Div<Self, Output = Self> + Mul<Self, Output = Self> + Neg<Output = Self> + Pow<Self, Output = Self> + Sub<Self, Output = Self> + Sum<Self> { }

Scalar values compatible with the DBAP algorithm, used to represent distances, coefficients, weights, etc.

The purpose of this trait is to allow the DBAP algorithm to be generic over the types of values used (e.g. f32, f64).

Implementors

impl<T> Scalar for T where
    T: Sized + Copy + From<DefaultScalar> + PartialEq + Add<Self, Output = Self> + Div<Self, Output = Self> + Mul<Self, Output = Self> + Neg<Output = Self> + Pow<Self, Output = Self> + Sub<Self, Output = Self> + Sum<Self>, 
[src]

Loading content...