Trait ha_ndarray::Log

source ·
pub trait Log {
    // Required methods
    fn ln(self) -> Self;
    fn log(self, base: Self) -> Self;
    fn exp(self) -> Self;
    fn pow(self, exp: Self) -> Self;
}
Expand description

Logarithm-related operations on a scalar value

Required Methods§

source

fn ln(self) -> Self

Compute the natural log of this value.

source

fn log(self, base: Self) -> Self

Compute the logarithm of this value with respect to the given base.

source

fn exp(self) -> Self

Compute e^self.

source

fn pow(self, exp: Self) -> Self

Compute the exponent of this value to the given power.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Log for f32

source§

fn ln(self) -> Self

source§

fn log(self, base: f32) -> Self

source§

fn exp(self) -> Self

source§

fn pow(self, n: f32) -> Self

source§

impl Log for f64

source§

fn ln(self) -> Self

source§

fn log(self, base: f64) -> Self

source§

fn exp(self) -> Self

source§

fn pow(self, n: f64) -> Self

Implementors§