pub trait Float:
FromPrimitive
+ Float
+ PartialOrd
+ Sync
+ Send
+ Default
+ Display
+ Debug
+ Signed
+ Sum
+ NumAssignOps
+ 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>
+ ScalarOperand
+ AbsDiffEq {
type Lapack: Float;
// Provided method
fn cast<T: NumCast>(x: T) -> Self { ... }
}Expand description
Float point numbers
This trait bound multiplexes to the most common assumption of floating point
number and implement them for 32bit and 64bit float points.
Ref: <https://github.com/rust-ml/linfa/blob/master/src/dataset/mod.rs#L36>
Required Associated Types§
Provided Methods§
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.