cuda.tile.greater_equal#
- cuda.tile.greater_equal(x, y, /)#
Compare two tiles elementwise with >=.
Can also use builtin operation x >= y.
The shape of x and y will be broadcasted and dtype promoted to common dtype.
- Return type:
Examples
>>> # tile and tile >>> tx = ct.arange(8, dtype=ct.int32) - 4 >>> ty = ct.arange(8, dtype=ct.int32) >>> tz = ct.greater_equal(tx, ty)
>>> # Can also use the builtin op >>> tz = tx >= ty
>>> # shape broadcast >>> tx = ct.arange(8, dtype=ct.int32) >>> ty = ct.full((1,), 0, dtype=ct.int32) >>> tz = tx >= ty
>>> # dtype broadcast >>> tx = ct.arange(8, dtype=ct.int32) - 4 >>> ty = ct.arange(8, dtype=ct.int64) >>> tz = tx >= ty
>>> # tile and scalar >>> tx = ct.arange(8, dtype=ct.int32) - 4 >>> tz = tx >= 0
>>> # scalar and scala >>> z = 5 >= 3