pub trait Dualize {
fn var(&self) -> Dual;
fn par(&self) -> Dual;
fn derive<DF>(&self, func: &DF) -> Dual
where
DF: DualFunction,
{ ... }
}Expand description
Construct autodifferentiation-specific dual numbers and evaluate functions over them
Required Methods
Provided Methods
fn derive<DF>(&self, func: &DF) -> Dual where
DF: DualFunction,
fn derive<DF>(&self, func: &DF) -> Dual where
DF: DualFunction,
Apply DualFunction to a value treated as dual variable