Trait necsim_core::cogs::MathsCore

pub trait MathsCore: 'static + Send + Sync + Clone + Debug {
    // Required methods
    fn floor(x: f64) -> f64;
    fn ceil(x: f64) -> f64;
    fn ln(x: f64) -> f64;
    fn exp(x: f64) -> f64;
    fn sqrt(x: f64) -> f64;
    fn pow(x: f64, exp: f64) -> f64;
    fn sin(x: f64) -> f64;
    fn cos(x: f64) -> f64;
    fn round(x: f64) -> f64;
}

Required Methods§

fn floor(x: f64) -> f64

fn ceil(x: f64) -> f64

fn ln(x: f64) -> f64

fn exp(x: f64) -> f64

fn sqrt(x: f64) -> f64

fn pow(x: f64, exp: f64) -> f64

fn sin(x: f64) -> f64

fn cos(x: f64) -> f64

fn round(x: f64) -> f64

Object Safety§

This trait is not object safe.

Implementors§

§

impl MathsCore for IntrinsicsMathsCore