Trait easy_ml::numeric::extra::Exp

source ·
pub trait Exp {
    type Output;

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

A type which can compute e^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 exp(self) -> Self::Output

Implementations on Foreign Types§

source§

impl Exp for &f32

§

type Output = f32

source§

fn exp(self) -> Self::Output

source§

impl Exp for &f64

§

type Output = f64

source§

fn exp(self) -> Self::Output

source§

impl Exp for f32

§

type Output = f32

source§

fn exp(self) -> Self::Output

source§

impl Exp for f64

§

type Output = f64

source§

fn exp(self) -> Self::Output

Implementors§

source§

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

Operation for a referenced record matrix of some type.

§

type Output = RecordContainer<'a, T, MatrixView<(T, usize), Matrix<(T, usize)>>, 2>

source§

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

Operation for a record matrix of some type.

§

type Output = RecordContainer<'a, T, MatrixView<(T, usize), Matrix<(T, usize)>>, 2>

source§

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

Operation for a referenced record tensor of some type.

§

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

source§

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

Operation for a record tensor of some type.

§

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

source§

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

Exponential, ie ex of a Record by reference.

§

type Output = Record<'a, T>

source§

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

Operation for a record by value.

§

type Output = Record<'a, T>

source§

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

Exponential, ie ex of a Trace by reference.

§

type Output = Trace<T>

source§

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

Operation for a trace by value.

§

type Output = Trace<T>