int_to_bit_array¶
-
forest.benchmarking.utils.
int_to_bit_array
(num: int, n_bits: int) → Sequence[int]¶ Converts a number into an array of bits where the right-most bit is least significant.
Parameters: - num – the integer corresponding to the bitstring.
- n_bits – the number of bits to report
Returns: an array of n_bits bits with right-most bit considered least significant.