mirror of
https://github.com/luxfhe/docs.git
synced 2026-10-30 18:13:39 +00:00
1.4 KiB
1.4 KiB
module torus.fhe.extensions.bits
Bit extraction extensions.
Global Variables
- MIN_EXTRACTABLE_BIT
- MAX_EXTRACTABLE_BIT
function bits
bits(x: Union[int, integer, list, ndarray, Tracer]) → Bits
Extract bits of integers.
Args: x (Union[int, np.integer, list, np.ndarray, Tracer]): input to extract bits from
Returns: Bits: Auxiliary class to represent bits of the integer
class Bits
Bits class, to provide indexing into the bits of integers.
method __init__
__init__(value: Union[int, integer, list, ndarray, Tracer])