Table of Contents

Enum UnaryOp

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Unary operations supported by kernel providers.

public enum UnaryOp

Fields

Negate = 0
Abs = 1
Sqrt = 2
Exp = 3
Log = 4
Sin = 5
Cos = 6
Tan = 7
Exp2 = 8
Expm1 = 9
Log2 = 10
Log10 = 11
Log1p = 12
Sinh = 13
Cosh = 14
Tanh = 15
ASin = 16
ACos = 17
ATan = 18
Asinh = 19
Acosh = 20
Atanh = 21
Sign = 22
Ceil = 23
Floor = 24
Round = 25
Truncate = 26
Reciprocal = 27
Square = 28
Cbrt = 29
Deg2Rad = 30
Rad2Deg = 31
BitwiseNot = 32
LogicalNot = 33

Logical NOT for boolean arrays (! operator, not ~ bitwise)

Positive = 34

Identity at every dtype (NumPy 'positive'; also the masked-copy vehicle for out=/where= compositions)

IsFinite = 35

Test element-wise for finiteness (not infinity and not NaN)

IsNan = 36

Test element-wise for NaN

IsInf = 37

Test element-wise for positive or negative infinity

IsPosInf = 38

Test element-wise for positive infinity (np.isposinf). x == +inf.

IsNegInf = 39

Test element-wise for negative infinity (np.isneginf). x == -inf.

Conjugate = 40

Complex 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.