pub enum Unary {
Neg,
Square,
Exp,
Ln,
Sin,
Cos,
Tan,
Sinh,
Cosh,
Tanh,
}Variants§
Implementations§
Source§impl Unary
impl Unary
Sourcepub fn eval_value<A: Scalar>(&self, arg: A) -> A
pub fn eval_value<A: Scalar>(&self, arg: A) -> A
Evaluate the result value of the operator
Sourcepub fn eval_deriv<A: Scalar>(&self, arg: A, deriv: A) -> A
pub fn eval_deriv<A: Scalar>(&self, arg: A, deriv: A) -> A
Evaluate the derivative of the operator multiplied by the received derivative from upper of the graph.
Trait Implementations§
impl Copy for Unary
Source§impl<'de> Deserialize<'de> for Unary
impl<'de> Deserialize<'de> for Unary
Source§fn 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
Auto Trait Implementations§
impl Freeze for Unary
impl RefUnwindSafe for Unary
impl Send for Unary
impl Sync for Unary
impl Unpin for Unary
impl UnsafeUnpin for Unary
impl UnwindSafe for Unary
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