pub enum Unary {
Neg,
Square,
Exp,
Ln,
Sin,
Cos,
Tan,
Sinh,
Cosh,
Tanh,
}
Variants
Neg
Square
Exp
Ln
Sin
Cos
Tan
Sinh
Cosh
Tanh
Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for Unary
impl<'de> Deserialize<'de> for Unary
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 Unary
Auto Trait Implementations
impl RefUnwindSafe for Unary
impl Send for Unary
impl Sync for Unary
impl Unpin for Unary
impl UnwindSafe for Unary
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