bitwise_and#

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

Computes the bitwise AND of the underlying binary representation of each element x1_iof 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_and(x1, x2):
...     return array_api.bitwise_and(x1, x2)
>>> array_api_bitwise_and([11,7], [4,25]).execute()
array([0, 1])

Array-API ‘bitwise_and’ doc