Skip to main content

Pullback

Trait Pullback 

Source
pub trait Pullback<OutputTangent, InputTangent> {
    // Required method
    fn apply(self, cotangent: OutputTangent) -> InputTangent;
}
Expand description

A reverse-mode pullback from an output cotangent to input cotangents.

Required Methods§

Source

fn apply(self, cotangent: OutputTangent) -> InputTangent

Applies the pullback once.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F, OutputTangent, InputTangent> Pullback<OutputTangent, InputTangent> for F
where F: FnOnce(OutputTangent) -> InputTangent,