pub enum LinearOp {
}Expand description
Linear operation for flattened expression evaluation
Variants§
LoadConst(f64)
Load constant value
LoadVar(u32)
Load variable by index
Add
Add two values from stack positions
Sub
Subtract two values from stack positions
Mul
Multiply two values from stack positions
Div
Divide two values from stack positions
Abs
Absolute value of stack top
Neg
Negate stack top
PowConst(i64)
Power operation with constant exponent
PowFloat(f64)
Power operation with floating point constant exponent
PowExpr
Power operation with expression exponent
Exp
Exponential of stack top
Ln
Natural log of stack top
Sqrt
Square root of stack top
Sin
Sine of stack top (argument in radians)
Cos
Cosine of stack top (argument in radians)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinearOp
impl RefUnwindSafe for LinearOp
impl Send for LinearOp
impl Sync for LinearOp
impl Unpin for LinearOp
impl UnwindSafe for LinearOp
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