bitwise_and

bitwise_and(x1: array, x2: array, /) array

Computes the bitwise AND 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.

Parameters:
  • x1 (array) – first input array. Should have an integer or boolean data type.

  • x2 (array) – second input array. Must be compatible with x1 (see Broadcasting). Should have an integer or boolean data type.

Returns:

out (array) – an array containing the element-wise results. The returned array must have a data type determined by Type Promotion Rules.