Trait cagra::operators::UnaryOperator
[−]
[src]
pub trait UnaryOperator<A: Scalar>: Clone + Debug { fn eval_value(&self, arg: &Value<A>) -> Result<Value<A>>; fn eval_deriv(&self, arg: &Value<A>, deriv: &Value<A>) -> Result<Value<A>>; }
Unary Operators
Required Methods
fn eval_value(&self, arg: &Value<A>) -> Result<Value<A>>
Evaluate the result value of the operator
fn eval_deriv(&self, arg: &Value<A>, deriv: &Value<A>) -> Result<Value<A>>
Evaluate the derivative of the operator multiplied by the received derivative from upper of the graph.
Implementors
impl<A: Scalar> UnaryOperator<A> for Neg
impl<A: Scalar> UnaryOperator<A> for UnaryOperatorAny