pub trait FastMath {
// Required methods
fn sin(self) -> Self;
fn cos(self) -> Self;
fn exp(self) -> Self;
fn sum(self) -> f32;
fn dot(self, other: Self) -> f32;
}Expand description
Fast math functions (≤ 3.5 ULP transcendentals, f32 reductions).
Required Methods§
fn sin(self) -> Self
fn cos(self) -> Self
fn exp(self) -> Self
fn sum(self) -> f32
fn dot(self, other: Self) -> f32
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.