Trait necsim_core_maths::MathsCore

source ·
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§

source

fn floor(x: f64) -> f64

source

fn ceil(x: f64) -> f64

source

fn ln(x: f64) -> f64

source

fn exp(x: f64) -> f64

source

fn sqrt(x: f64) -> f64

source

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

source

fn sin(x: f64) -> f64

source

fn cos(x: f64) -> f64

source

fn round(x: f64) -> f64

Object Safety§

This trait is not object safe.

Implementors§