DualOf

Type Alias DualOf 

Source
pub type DualOf<F, C, T> = Dual<ValueOf<F, C>, ValueOf<AdjointOf<F, T>, C>>;
Expand description

Alias for the dual associated with a function.

Aliased Type§

pub struct DualOf<F, C, T> {
    pub value: <F as Function<C>>::Value,
    pub adjoint: <<F as Differentiable<T>>::Adjoint as Function<C>>::Value,
}

Fields§

§value: <F as Function<C>>::Value

The value associated with the dual number.

§adjoint: <<F as Differentiable<T>>::Adjoint as Function<C>>::Value

The gradient/adjoint associated with the dual number.