#[repr(u32)]pub enum UnaryArithmeticOp {
Show 32 variants
Identity = 0,
Exponent = 1,
ExponentBase2 = 2,
ExponentBase10 = 3,
Logarithm = 4,
LogarithmBase2 = 5,
LogarithmBase10 = 6,
Square = 7,
SquareRoot = 8,
Reciprocal = 9,
Absolute = 10,
Negative = 11,
Sign = 12,
SignBit = 13,
Ceil = 14,
Floor = 15,
Round = 16,
Rint = 17,
Sin = 18,
Cos = 19,
Tan = 20,
Sinh = 21,
Cosh = 22,
Tanh = 23,
Asin = 24,
Acos = 25,
Atan = 26,
Asinh = 27,
Acosh = 28,
Atanh = 29,
IsNaN = 30,
IsInfinite = 31,
}Expand description
Mirrors the MPSGraph framework counterpart for UnaryArithmeticOp.
Variants§
Identity = 0
Mirrors the MPSGraph framework case Identity.
Exponent = 1
Mirrors the MPSGraph framework case Exponent.
ExponentBase2 = 2
Mirrors the MPSGraph framework case ExponentBase2.
ExponentBase10 = 3
Mirrors the MPSGraph framework case ExponentBase10.
Logarithm = 4
Mirrors the MPSGraph framework case Logarithm.
LogarithmBase2 = 5
Mirrors the MPSGraph framework case LogarithmBase2.
LogarithmBase10 = 6
Mirrors the MPSGraph framework case LogarithmBase10.
Square = 7
Mirrors the MPSGraph framework case Square.
SquareRoot = 8
Mirrors the MPSGraph framework case SquareRoot.
Reciprocal = 9
Mirrors the MPSGraph framework case Reciprocal.
Absolute = 10
Mirrors the MPSGraph framework case Absolute.
Negative = 11
Mirrors the MPSGraph framework case Negative.
Sign = 12
Mirrors the MPSGraph framework case Sign.
SignBit = 13
Mirrors the MPSGraph framework case SignBit.
Ceil = 14
Mirrors the MPSGraph framework case Ceil.
Floor = 15
Mirrors the MPSGraph framework case Floor.
Round = 16
Mirrors the MPSGraph framework case Round.
Rint = 17
Mirrors the MPSGraph framework case Rint.
Sin = 18
Mirrors the MPSGraph framework case Sin.
Cos = 19
Mirrors the MPSGraph framework case Cos.
Tan = 20
Mirrors the MPSGraph framework case Tan.
Sinh = 21
Mirrors the MPSGraph framework case Sinh.
Cosh = 22
Mirrors the MPSGraph framework case Cosh.
Tanh = 23
Mirrors the MPSGraph framework case Tanh.
Asin = 24
Mirrors the MPSGraph framework case Asin.
Acos = 25
Mirrors the MPSGraph framework case Acos.
Atan = 26
Mirrors the MPSGraph framework case Atan.
Asinh = 27
Mirrors the MPSGraph framework case Asinh.
Acosh = 28
Mirrors the MPSGraph framework case Acosh.
Atanh = 29
Mirrors the MPSGraph framework case Atanh.
IsNaN = 30
Mirrors the MPSGraph framework case IsNaN.
IsInfinite = 31
Mirrors the MPSGraph framework case IsInfinite.
Trait Implementations§
Source§impl Clone for UnaryArithmeticOp
impl Clone for UnaryArithmeticOp
Source§fn clone(&self) -> UnaryArithmeticOp
fn clone(&self) -> UnaryArithmeticOp
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UnaryArithmeticOp
impl Debug for UnaryArithmeticOp
Source§impl PartialEq for UnaryArithmeticOp
impl PartialEq for UnaryArithmeticOp
Source§fn eq(&self, other: &UnaryArithmeticOp) -> bool
fn eq(&self, other: &UnaryArithmeticOp) -> bool
self and other values to be equal, and is used by ==.