pub enum UnaryMathOp {
Negate,
Sqrt,
Ln,
Exp,
Floor,
Ceil,
}Expand description
Unary arithmetic or math function in native expression IR.
Variants§
Negate
Arithmetic negation of signed integers or floating-point values. Integer arrays wrap at the minimum value; floating-point zero changes sign.
Sqrt
Square root; negative inputs produce NaN.
Ln
Natural logarithm; zero produces negative infinity and negative inputs produce NaN.
Exp
Natural exponential e ^ x.
Floor
Largest integral floating-point value not above the input. NaN and infinities pass through; the output type equals the floating-point input type.
Ceil
Smallest integral floating-point value not below the input. NaN and infinities pass through; the output type equals the floating-point input type.
Trait Implementations§
Source§impl Clone for UnaryMathOp
impl Clone for UnaryMathOp
impl Copy for UnaryMathOp
Source§impl Debug for UnaryMathOp
impl Debug for UnaryMathOp
Source§impl Display for UnaryMathOp
impl Display for UnaryMathOp
impl Eq for UnaryMathOp
Source§impl Hash for UnaryMathOp
impl Hash for UnaryMathOp
Source§impl PartialEq for UnaryMathOp
impl PartialEq for UnaryMathOp
impl StructuralPartialEq for UnaryMathOp
Auto Trait Implementations§
impl Freeze for UnaryMathOp
impl RefUnwindSafe for UnaryMathOp
impl Send for UnaryMathOp
impl Sync for UnaryMathOp
impl Unpin for UnaryMathOp
impl UnsafeUnpin for UnaryMathOp
impl UnwindSafe for UnaryMathOp
Blanket Implementations§
impl<T> Allocation for T
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