pub enum Operation<F: IntegrateFloat> {
Show 22 variants
Variable(usize),
Constant(F),
Add(usize, usize),
Sub(usize, usize),
Mul(usize, usize),
Div(usize, usize),
Neg(usize),
Pow(usize, F),
PowGeneral(usize, usize),
Sin(usize),
Cos(usize),
Tan(usize),
Exp(usize),
Ln(usize),
Sqrt(usize),
Tanh(usize),
Sinh(usize),
Cosh(usize),
Atan2(usize, usize),
Abs(usize),
Max(usize, usize),
Min(usize, usize),
}Expand description
Operations that can be recorded on the tape
Variants§
Variable(usize)
Variable input
Constant(F)
Constant value
Add(usize, usize)
Addition
Sub(usize, usize)
Subtraction
Mul(usize, usize)
Multiplication
Div(usize, usize)
Division
Neg(usize)
Negation
Pow(usize, F)
Power
PowGeneral(usize, usize)
General power (base and exponent are both tape values)
Sin(usize)
Sin
Cos(usize)
Cos
Tan(usize)
Tan
Exp(usize)
Exp
Ln(usize)
Ln
Sqrt(usize)
Sqrt
Tanh(usize)
Tanh
Sinh(usize)
Sinh
Cosh(usize)
Cosh
Atan2(usize, usize)
Atan2
Abs(usize)
Abs
Max(usize, usize)
Max
Min(usize, usize)
Min
Trait Implementations§
Auto Trait Implementations§
impl<F> Freeze for Operation<F>where
F: Freeze,
impl<F> RefUnwindSafe for Operation<F>where
F: RefUnwindSafe,
impl<F> Send for Operation<F>where
F: Send,
impl<F> Sync for Operation<F>where
F: Sync,
impl<F> Unpin for Operation<F>where
F: Unpin,
impl<F> UnwindSafe for Operation<F>where
F: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more