pymc.math.ge#
- pymc.math.ge = Elemwise(scalar_op=GE,inplace_pattern=<frozendict {}>)[source]#
a >= b
Computes element-wise greater than or equal comparison between two tensors.
- Parameters:
- a
TensorLike
First input tensor
- b
TensorLike
Second input tensor
- a
- Returns:
TensorVariable
Output tensor of type bool, with 1 (True) where a >= b, and 0 (False) elsewhere.
Examples
>>> import pytensor >>> import pytensor.tensor as pt >>> x = pt.vector("x") >>> y = pt.vector("y") >>> f = pytensor.function([x, y], pt.ge(x, y)) >>> f([1, 2, 3], [0, 2, 4]) array([ True, True, False])