NumPy Tutorial NumPy Statistics NumPy References

NumPy - Binary Operators

The NumPy has built-in functions which supports bitwise operations on arrays. Below is the list of bitwise functions available with NumPy package.

bitwise_and() Compute the bit-wise AND of two arrays element-wise.
bitwise_or() Compute the bit-wise OR of two arrays element-wise.
bitwise_xor() Compute the bit-wise XOR of two arrays element-wise.
invert() Compute bit-wise inversion, or bit-wise NOT, element-wise.
left_shift() Shift the bits of an integer to the left.
right_shift() Shift the bits of an integer to the right.