Skip to main content

UnaryArithmeticOp

Enum UnaryArithmeticOp 

Source
#[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

Source§

fn clone(&self) -> UnaryArithmeticOp

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for UnaryArithmeticOp

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for UnaryArithmeticOp

Source§

fn eq(&self, other: &UnaryArithmeticOp) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for UnaryArithmeticOp

Source§

impl Eq for UnaryArithmeticOp

Source§

impl StructuralPartialEq for UnaryArithmeticOp

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.