Trait flechasdb::kmeans::Scalar

source ·
pub trait Scalar: SampleUniform + DefaultEpsilon + Abs + Infinity + One + Sqrt + Zero + AddAssign + Div<Output = Self> + Mul<Output = Self> + MulAssign + Sub<Output = Self> + SubAssign + FromAs<usize> + PartialOrd + Copy + Debug { }
Expand description

Requirements for a vector element as a scalar value.

f32 and f64 satisfy all of the curated traits.

Implementations on Foreign Types§

source§

impl Scalar for f32

source§

impl Scalar for f64

Implementors§