Gradient

Trait Gradient 

Source
pub trait Gradient<T> {
    type Delta<_U>;

    // Required method
    fn grad(&self, rhs: &Self::Delta<T>) -> Self::Delta<T>;
}
Expand description

the Gradient trait defines the gradient of a function, which is a function that takes an input and returns a delta, which is the change in the output with respect to the input.

Required Associated Types§

Source

type Delta<_U>

Required Methods§

Source

fn grad(&self, rhs: &Self::Delta<T>) -> Self::Delta<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§