Trait numcodecs_log::Float

source ·
pub trait Float: Copy {
    // Required methods
    fn ln_1p(self) -> Self;
    fn exp_m1(self) -> Self;
    fn is_negative(self) -> bool;
    fn is_finite(self) -> bool;
}
Expand description

Floating point types.

Required Methods§

source

fn ln_1p(self) -> Self

Returns ln(self+1), the natural logarithm.

source

fn exp_m1(self) -> Self

Returns exp(self)-1.

source

fn is_negative(self) -> bool

Returns true if this number is negative.

source

fn is_finite(self) -> bool

Returns true if this number is neither infinite nor NaN.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Float for f32

source§

fn ln_1p(self) -> Self

source§

fn exp_m1(self) -> Self

source§

fn is_negative(self) -> bool

source§

fn is_finite(self) -> bool

source§

impl Float for f64

source§

fn ln_1p(self) -> Self

source§

fn exp_m1(self) -> Self

source§

fn is_negative(self) -> bool

source§

fn is_finite(self) -> bool

Implementors§