[][src]Trait easy_ml::numeric::extra::RealByValue

pub trait RealByValue<Rhs = Self, Output = Self>: Sqrt<Output = Output> + Exp<Output = Output> + Pow<Rhs, Output = Output> + Ln<Output = Output> + Sin<Output = Output> + Cos<Output = Output> + Sized { }

A trait defining what a real number type is in terms of by value numerical operations needed on top of operations defined by Numeric for some functions.

The requirements are Sqrt, Exp, Pow, Ln, Sin, Cos and Sized.

Implementors

impl<T, Rhs, Output> RealByValue<Rhs, Output> for T where
    T: Sqrt<Output = Output> + Exp<Output = Output> + Pow<Rhs, Output = Output> + Ln<Output = Output> + Sin<Output = Output> + Cos<Output = Output> + Sized
[src]

Anything which implements all the super traits will automatically implement this trait too. This covers primitives such as f32 & f64

Loading content...