Bit-wise operations#
Elementwise bit operations#
|
Computes the bitwise AND of two arrays elementwise. |
|
Computes the bitwise OR of two arrays elementwise. |
|
Computes the bitwise XOR of two arrays elementwise. |
bitwise_invert(x, /, out=None, *, casting='same_kind', dtype=None) |
|
|
Computes the bitwise NOT of an array elementwise. |
bitwise_left_shift(x1, x2, /, out=None, *, casting='same_kind', dtype=None) |
|
|
Shifts the bits of each integer element to the left. |
bitwise_right_shift(x1, x2, /, out=None, *, casting='same_kind', dtype=None) |
|
|
Shifts the bits of each integer element to the right. |
Bit packing#
|
Packs the elements of a binary-valued array into bits in a uint8 array. |
|
Unpacks elements of a uint8 array into a binary-valued output array. |
Output formatting#
|
Return the binary representation of the input number as a string. |