Trait gad::linked::LinkedAlgebra[][src]

pub trait LinkedAlgebra<SourceValue, TargetValue> {
    fn link<'a>(&mut self, value: &'a SourceValue) -> &'a TargetValue;
}

How to reference values from another algebra. This is needed for higher-order differentials in order to propagate gradients all the way to the initial variables.

Required methods

Loading content...

Implementors

impl<D, A> LinkedAlgebra<Value<D>, D> for A where
    A: CoreAlgebra<D, Value = D>, 
[src]

Ignore the link when evaluating pure arrays.

impl<V, C: Config> LinkedAlgebra<V, V> for Graph<C>[src]

Assume that we link into a copy of the original graph.

Loading content...