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§
Trait Implementations§
source§impl<T: Clone> Clone for Derivatives<T>
impl<T: Clone> Clone for Derivatives<T>
Any derivatives of a Cloneable type implements clone
source§impl<T: Debug> Debug for Derivatives<T>
impl<T: Debug> Debug for Derivatives<T>
source§impl<T> From<Derivatives<T>> for Vec<T>
impl<T> From<Derivatives<T>> for Vec<T>
source§fn 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 usizes. The indexes correspond to the
index field on Records.
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more