Enum UnaryOp
Unary operations supported by kernel providers.
public enum UnaryOp
Fields
Negate = 0Abs = 1Sqrt = 2Exp = 3Log = 4Sin = 5Cos = 6Tan = 7Exp2 = 8Expm1 = 9Log2 = 10Log10 = 11Log1p = 12Sinh = 13Cosh = 14Tanh = 15ASin = 16ACos = 17ATan = 18Asinh = 19Acosh = 20Atanh = 21Sign = 22Ceil = 23Floor = 24Round = 25Truncate = 26Reciprocal = 27Square = 28Cbrt = 29Deg2Rad = 30Rad2Deg = 31BitwiseNot = 32LogicalNot = 33Logical NOT for boolean arrays (! operator, not ~ bitwise)
Positive = 34Identity at every dtype (NumPy 'positive'; also the masked-copy vehicle for out=/where= compositions)
IsFinite = 35Test element-wise for finiteness (not infinity and not NaN)
IsNan = 36Test element-wise for NaN
IsInf = 37Test element-wise for positive or negative infinity
IsPosInf = 38Test element-wise for positive infinity (np.isposinf). x == +inf.
IsNegInf = 39Test element-wise for negative infinity (np.isneginf). x == -inf.
Conjugate = 40Complex conjugate (np.conjugate / np.conj). Identity at every real dtype (bool/int/char/half/single/double/decimal) — the loaded value IS the result — and flips the sign of the imaginary part for Complex (via
System.Numerics.Complex.Conjugate). Dtype is preserved (never promoted), matching NumPy's per-dtype conjugate loops.