bitwise_or#

rbc.stdlib.elementwise_functions.bitwise_or(x1, x2)#

Computes the bitwise OR of the underlying binary representation of each element x1_i of the input array x1 with the respective element x2_i of the input array x2.

Examples

>>> from rbc.stdlib import array_api
>>> @heavydb('int64(int64, int64)')
... def array_api_bitwise_or(x1, x2):
...     return array_api.bitwise_or(x1, x2)
>>> array_api_bitwise_or(13, 16).execute()
29
>>> np.binary_repr(29)
'11101'
>>> array_api_bitwise_or(32, 2).execute()
34

Array-API ‘bitwise_or’ doc