Package apple.mlcompute.enums
Class MLCArithmeticOperation
- java.lang.Object
-
- apple.mlcompute.enums.MLCArithmeticOperation
-
public final class MLCArithmeticOperation extends java.lang.Object[@enum] MLCArithmeticOperation The list of supported arithmetic operations.
-
-
Field Summary
Fields Modifier and Type Field Description static intAcosAn operation that calculates the elementwise inverse cosine of its inputs.static intAcoshAn operation that calculates the elementwise inverse hyperbolic cosine of its inputs.static intAddAn operation that calculates the elementwise sum of its two inputs.static intAsinAn operation that calculates the elementwise inverse sine of its inputs.static intAsinhAn operation that calculates the elementwise inverse hyperbolic sine of its inputs.static intAtanAn operation that calculates the elementwise inverse tangent of its inputs.static intAtanhAn operation that calculates the elementwise inverse hyperbolic tangent of its inputs.static intCeilAn operation that calculates the elementwise ceiling of its inputs.static intCosAn operation that calculates the elementwise cosine of its inputs.static intCoshAn operation that calculates the elementwise hyperbolic cosine of its inputs.static intCountMust be laststatic intDivideAn operation that calculates the elementwise division of its two inputs.static intDivideNoNaNAn operations that calculates the elementwise division of its two inputs.static intExpAn operation that calculates the elementwise result of e raised to the power of its input.static intExp2An operation that calculates the elementwise result of 2 raised to the power of its input.static intFloorAn operation that calculates the elementwise floor of its two inputs.static intLogAn operation that calculates the elementwise natural logarithm of its input.static intLog2An operation that calculates the elementwise base 2 logarithm of its input.static intMaxAn operations that calculates the elementwise max of two inputs.static intMinAn operation that calculates the elementwise min of two inputs.static intMultiplyAn operation that calculates the elementwise product of its two inputs.static intMultiplyNoNaNAn operation that calculates the elementwise product of its two inputs.static intPowAn operation that calculates the elementwise first input raised to the power of its second input.static intRoundAn operation that calculates the elementwise round of its inputs.static intRsqrtAn operation that calculates the elementwise reciprocal of the square root of its inputs.static intSinAn operation that calculates the elementwise sine of its inputs.static intSinhAn operation that calculates the elementwise hyperbolic sine of its inputs.static intSqrtAn operation that calculates the elementwise square root of its inputs.static intSubtractAn operation that calculates the elementwise difference of its two inputs.static intTanAn operation that calculates the elementwise tangent of its inputs.static intTanhAn operation that calculates the elementwise hyperbolic tangent of its inputs.
-
-
-
Field Detail
-
Add
public static final int Add
An operation that calculates the elementwise sum of its two inputs.- See Also:
- Constant Field Values
-
Subtract
public static final int Subtract
An operation that calculates the elementwise difference of its two inputs.- See Also:
- Constant Field Values
-
Multiply
public static final int Multiply
An operation that calculates the elementwise product of its two inputs.- See Also:
- Constant Field Values
-
Divide
public static final int Divide
An operation that calculates the elementwise division of its two inputs.- See Also:
- Constant Field Values
-
Floor
public static final int Floor
An operation that calculates the elementwise floor of its two inputs.- See Also:
- Constant Field Values
-
Round
public static final int Round
An operation that calculates the elementwise round of its inputs.- See Also:
- Constant Field Values
-
Ceil
public static final int Ceil
An operation that calculates the elementwise ceiling of its inputs.- See Also:
- Constant Field Values
-
Sqrt
public static final int Sqrt
An operation that calculates the elementwise square root of its inputs.- See Also:
- Constant Field Values
-
Rsqrt
public static final int Rsqrt
An operation that calculates the elementwise reciprocal of the square root of its inputs.- See Also:
- Constant Field Values
-
Sin
public static final int Sin
An operation that calculates the elementwise sine of its inputs.- See Also:
- Constant Field Values
-
Cos
public static final int Cos
An operation that calculates the elementwise cosine of its inputs.- See Also:
- Constant Field Values
-
Tan
public static final int Tan
An operation that calculates the elementwise tangent of its inputs.- See Also:
- Constant Field Values
-
Asin
public static final int Asin
An operation that calculates the elementwise inverse sine of its inputs.- See Also:
- Constant Field Values
-
Acos
public static final int Acos
An operation that calculates the elementwise inverse cosine of its inputs.- See Also:
- Constant Field Values
-
Atan
public static final int Atan
An operation that calculates the elementwise inverse tangent of its inputs.- See Also:
- Constant Field Values
-
Sinh
public static final int Sinh
An operation that calculates the elementwise hyperbolic sine of its inputs.- See Also:
- Constant Field Values
-
Cosh
public static final int Cosh
An operation that calculates the elementwise hyperbolic cosine of its inputs.- See Also:
- Constant Field Values
-
Tanh
public static final int Tanh
An operation that calculates the elementwise hyperbolic tangent of its inputs.- See Also:
- Constant Field Values
-
Asinh
public static final int Asinh
An operation that calculates the elementwise inverse hyperbolic sine of its inputs.- See Also:
- Constant Field Values
-
Acosh
public static final int Acosh
An operation that calculates the elementwise inverse hyperbolic cosine of its inputs.- See Also:
- Constant Field Values
-
Atanh
public static final int Atanh
An operation that calculates the elementwise inverse hyperbolic tangent of its inputs.- See Also:
- Constant Field Values
-
Pow
public static final int Pow
An operation that calculates the elementwise first input raised to the power of its second input.- See Also:
- Constant Field Values
-
Exp
public static final int Exp
An operation that calculates the elementwise result of e raised to the power of its input.- See Also:
- Constant Field Values
-
Exp2
public static final int Exp2
An operation that calculates the elementwise result of 2 raised to the power of its input.- See Also:
- Constant Field Values
-
Log
public static final int Log
An operation that calculates the elementwise natural logarithm of its input.- See Also:
- Constant Field Values
-
Log2
public static final int Log2
An operation that calculates the elementwise base 2 logarithm of its input.- See Also:
- Constant Field Values
-
MultiplyNoNaN
public static final int MultiplyNoNaN
An operation that calculates the elementwise product of its two inputs. Returns 0 if y in x * y is zero, even if x is NaN or INF API-Since: 14.5- See Also:
- Constant Field Values
-
DivideNoNaN
public static final int DivideNoNaN
An operations that calculates the elementwise division of its two inputs. Returns 0 if the denominator is 0. API-Since: 14.5- See Also:
- Constant Field Values
-
Min
public static final int Min
An operation that calculates the elementwise min of two inputs. API-Since: 14.5- See Also:
- Constant Field Values
-
Max
public static final int Max
An operations that calculates the elementwise max of two inputs. API-Since: 14.5- See Also:
- Constant Field Values
-
Count
public static final int Count
Must be last- See Also:
- Constant Field Values
-
-