Expand description
Utilities related to bit manipulation of tensor elements.
Functionsยง
- flip_
bits - Flips the bits in
num
fromi
th position to(n-i)
th position. - get_bit
- Get the
bit_index
bit value fromnum
. - get_
flat_ index - Get the index into an Op matrix
- set_bit
- Set the
bit_index
bit innum
tovalue
.