Trait Ln

Source
pub trait Ln {
    type Output;

    // Required method
    fn ln(self) -> Self::Output;
}
Expand description

A type which can compute the natural logarithm of itself: ln(self).

This is implemented by f32 and f64 by value and by reference, as well as Traces and Records of these.

Required Associated Types§

Required Methods§

Source

fn ln(self) -> Self::Output

Implementations on Foreign Types§

Source§

impl Ln for &f32

Source§

type Output = f32

Source§

fn ln(self) -> Self::Output

Source§

impl Ln for &f64

Source§

type Output = f64

Source§

fn ln(self) -> Self::Output

Source§

impl Ln for f32

Source§

type Output = f32

Source§

fn ln(self) -> Self::Output

Source§

impl Ln for f64

Source§

type Output = f64

Source§

fn ln(self) -> Self::Output

Implementors§

Source§

impl<'a, T, S> Ln for &RecordMatrix<'a, T, S>
where T: Real + Primitive, for<'t> &'t T: RealRef<T>, S: MatrixRef<(T, Index)> + NoInteriorMutability,

Operation for a referenced record matrix of some type.

Source§

impl<'a, T, S> Ln for RecordMatrix<'a, T, S>
where T: Real + Primitive, for<'t> &'t T: RealRef<T>, S: MatrixRef<(T, Index)> + NoInteriorMutability,

Operation for a record matrix of some type.

Source§

impl<'a, T, S, const D: usize> Ln for &RecordTensor<'a, T, S, D>
where T: Real + Primitive, for<'t> &'t T: RealRef<T>, S: TensorRef<(T, Index), D>,

Operation for a referenced record tensor of some type.

Source§

type Output = RecordContainer<'a, T, TensorView<(T, usize), Tensor<(T, usize), D>, D>, D>

Source§

impl<'a, T, S, const D: usize> Ln for RecordTensor<'a, T, S, D>
where T: Real + Primitive, for<'t> &'t T: RealRef<T>, S: TensorRef<(T, Index), D>,

Operation for a record tensor of some type.

Source§

type Output = RecordContainer<'a, T, TensorView<(T, usize), Tensor<(T, usize), D>, D>, D>

Source§

impl<'a, T: Real + Primitive> Ln for &Record<'a, T>
where for<'t> &'t T: RealRef<T>,

Natural logarithm, ie ln(x) of a Record by reference.

Source§

type Output = Record<'a, T>

Source§

impl<'a, T: Real + Primitive> Ln for Record<'a, T>
where for<'t> &'t T: RealRef<T>,

Operation for a record by value.

Source§

type Output = Record<'a, T>

Source§

impl<T: Real + Primitive> Ln for &Trace<T>
where for<'a> &'a T: RealRef<T>,

Natural logarithm, ie ln(x) of a Trace by reference.

Source§

impl<T: Real + Primitive> Ln for Trace<T>
where for<'a> &'a T: RealRef<T>,

Operation for a trace by value.