pub enum ContinuousUnaryOperator {
Sqrt,
}Expand description
Unary arithmetic operator specific to continuous values.
Variants§
Sqrt
Square root.
Implementations§
Source§impl ContinuousUnaryOperator
impl ContinuousUnaryOperator
Sourcepub fn eval(&self, x: Continuous) -> Continuous
pub fn eval(&self, x: Continuous) -> Continuous
Returns the evaluation result.
Sourcepub fn eval_vector(&self, x: Vec<Continuous>) -> Vec<Continuous> ⓘ
pub fn eval_vector(&self, x: Vec<Continuous>) -> Vec<Continuous> ⓘ
Returns the evaluation result for a vector.
Trait Implementations§
Source§impl Clone for ContinuousUnaryOperator
impl Clone for ContinuousUnaryOperator
Source§fn clone(&self) -> ContinuousUnaryOperator
fn clone(&self) -> ContinuousUnaryOperator
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContinuousUnaryOperator
impl Debug for ContinuousUnaryOperator
impl Eq for ContinuousUnaryOperator
Source§impl PartialEq for ContinuousUnaryOperator
impl PartialEq for ContinuousUnaryOperator
Source§fn eq(&self, other: &ContinuousUnaryOperator) -> bool
fn eq(&self, other: &ContinuousUnaryOperator) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContinuousUnaryOperator
Auto Trait Implementations§
impl Freeze for ContinuousUnaryOperator
impl RefUnwindSafe for ContinuousUnaryOperator
impl Send for ContinuousUnaryOperator
impl Sync for ContinuousUnaryOperator
impl Unpin for ContinuousUnaryOperator
impl UnsafeUnpin for ContinuousUnaryOperator
impl UnwindSafe for ContinuousUnaryOperator
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