Trait linfa::dataset::Float

source ·
pub trait Float: NdFloat + FromPrimitive + Default + Signed + Sum + AsPrimitive<usize> + for<'a> AddAssign<&'a Self> + for<'a> MulAssign<&'a Self> + for<'a> SubAssign<&'a Self> + for<'a> DivAssign<&'a Self> + MulAdd<Output = Self> + SampleUniform + ScalarOperand + AbsDiffEq + Unpin + MulAcc {
    type Lapack: Float;

    // Provided method
    fn cast<T: NumCast>(x: T) -> Self { ... }
}
Expand description

Floating point numbers

This trait bound multiplexes to the most common assumption of floating point number and implement them for 32bit and 64bit floating points. They are used in records of a dataset and, for regression task, in the targets as well.

Required Associated Types§

Provided Methods§

source

fn cast<T: NumCast>(x: T) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Float for f32

§

type Lapack = f32

source§

impl Float for f64

§

type Lapack = f64

Implementors§