pub enum Binary {
Add,
Mul,
Div,
Pow,
}
Variants
Add
Mul
Div
Pow
Implementations
sourceimpl Binary
impl Binary
sourcepub fn eval_value<A: Scalar>(&self, lhs: A, rhs: A) -> A
pub fn eval_value<A: Scalar>(&self, lhs: A, rhs: A) -> A
Evaluate the result value of the operator
sourcepub fn eval_deriv<A: Scalar>(&self, lhs: A, rhs: A, deriv: A) -> (A, A)
pub fn eval_deriv<A: Scalar>(&self, lhs: A, rhs: A, deriv: A) -> (A, A)
Evaluate the derivative of the operator multiplied by the received derivative from upper of the graph.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Binary
impl<'de> Deserialize<'de> for Binary
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Binary
Auto Trait Implementations
impl RefUnwindSafe for Binary
impl Send for Binary
impl Sync for Binary
impl Unpin for Binary
impl UnwindSafe for Binary
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more