Struct easy_ml::differentiation::Derivatives
source · [−]pub struct Derivatives<T> { /* private fields */ }
Expand description
Computed derivatives of a computational graph for some output Record variable.
This can be indexed by any Record used in the computational graph to get the derivative with respect to that input.
Indexing using Records not involved in the computational graph, or involved in a different one will return nonsense or index out of bounds and panic. In the future this may be changed to always panic.
Implementations
sourceimpl<T: Clone + Primitive> Derivatives<T>
impl<T: Clone + Primitive> Derivatives<T>
Trait Implementations
sourceimpl<T: Clone> Clone for Derivatives<T>
impl<T: Clone> Clone for Derivatives<T>
Any derivatives of a Cloneable type implements clone
sourceimpl<T: Debug> Debug for Derivatives<T>
impl<T: Debug> Debug for Derivatives<T>
sourceimpl<T> From<Derivatives<T>> for Vec<T>
impl<T> From<Derivatives<T>> for Vec<T>
sourcefn from(derivatives: Derivatives<T>) -> Self
fn from(derivatives: Derivatives<T>) -> Self
Converts the Derivatives struct into a Vec of derivatives that
can be indexed with usize
s. The indexes correspond to the
index field on Records.
sourceimpl<'a, T: Primitive> Index<&'_ Record<'a, T>> for Derivatives<T>
impl<'a, T: Primitive> Index<&'_ Record<'a, T>> for Derivatives<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Derivatives<T> where
T: RefUnwindSafe,
impl<T> Send for Derivatives<T> where
T: Send,
impl<T> Sync for Derivatives<T> where
T: Sync,
impl<T> Unpin for Derivatives<T> where
T: Unpin,
impl<T> UnwindSafe for Derivatives<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more