# Binary Operations¶

## Elementwise bit operations¶

 cupy.bitwise_and Computes the bitwise AND of two arrays elementwise. cupy.bitwise_or Computes the bitwise OR of two arrays elementwise. cupy.bitwise_xor Computes the bitwise XOR of two arrays elementwise. cupy.invert Computes the bitwise NOT of an array elementwise. cupy.left_shift Shifts the bits of each integer element to the left. cupy.right_shift Shifts the bits of each integer element to the right.

## Bit packing¶

 cupy.packbits Packs the elements of a binary-valued array into bits in a uint8 array. cupy.unpackbits Unpacks elements of a uint8 array into a binary-valued output array.

## Output formatting¶

 cupy.binary_repr Return the binary representation of the input number as a string.