Binary 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) |
|
bitwise_left_shift(x1, x2, /, out=None, *, casting='same_kind', dtype=None) |
|
bitwise_right_shift(x1, x2, /, out=None, *, casting='same_kind', dtype=None) |
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. |