Binary#

nabla.ops.binary.add(arg0, arg1)[source]#

Element-wise addition of two arrays or array and scalar.

nabla.ops.binary.mul(arg0, arg1)[source]#

Element-wise multiplication of two arrays or array and scalar.

nabla.ops.binary.sub(arg0, arg1)[source]#

Element-wise subtraction of two arrays or array and scalar.

nabla.ops.binary.div(arg0, arg1)[source]#

Element-wise division of two arrays or array and scalar.

nabla.ops.binary.floordiv(arg0, arg1)[source]#

Element-wise floor division of two arrays or array and scalar.

Floor division is implemented as floor(a / b) which rounds towards negative infinity, matching Python’s // operator behavior.

nabla.ops.binary.mod(arg0, arg1)[source]#

Element-wise modulo operation (arg0 % arg1).

nabla.ops.binary.pow(arg0, arg1)[source]#

Element-wise power operation (arg0^arg1).

nabla.ops.binary.greater_equal(arg0, arg1)[source]#

Element-wise greater than or equal to operation.

nabla.ops.binary.equal(arg0, arg1)[source]#

Element-wise equality comparison.

nabla.ops.binary.not_equal(arg0, arg1)[source]#

Element-wise not-equal comparison.

nabla.ops.binary.maximum(arg0, arg1)[source]#

Element-wise maximum of two arrays or array and scalar.

nabla.ops.binary.minimum(arg0, arg1)[source]#

Element-wise minimum of two arrays or array and scalar.