Table of Contents

Enum BinaryOp

Namespace
NumSharp.Backends.Kernels
Assembly
NumSharp.dll

Binary operations supported by kernel providers.

public enum BinaryOp

Fields

Add = 0
Subtract = 1
Multiply = 2
Divide = 3
Mod = 4
BitwiseAnd = 5
BitwiseOr = 6
BitwiseXor = 7
Power = 8
FloorDivide = 9
LeftShift = 10
RightShift = 11
ATan2 = 12

Element-wise arc tangent of y/x choosing the quadrant correctly (np.arctan2)

Maximum = 13

Element-wise maximum, NaN-propagating (np.maximum): a NaN operand wins.

Minimum = 14

Element-wise minimum, NaN-propagating (np.minimum): a NaN operand wins.

FMax = 15

Element-wise maximum, NaN-ignoring (np.fmax): returns the non-NaN operand.

FMin = 16

Element-wise minimum, NaN-ignoring (np.fmin): returns the non-NaN operand.

LogAddExp = 17

log(exp(x1)+exp(x2)) computed stably (np.logaddexp).

LogAddExp2 = 18

log2(2x1 + 2x2) computed stably (np.logaddexp2).

NextAfter = 19

Next representable value after x1 toward x2 (np.nextafter).

CopySign = 20

Magnitude of x1 with the sign of x2 (np.copysign).