Skip to main content

FastMath

Trait FastMath 

Source
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§

Source

fn sin(self) -> Self

Source

fn cos(self) -> Self

Source

fn exp(self) -> Self

Source

fn sum(self) -> f32

Source

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.

Implementors§