ComputeFHE 1.0
General-Purpose Privacy-Preserving Computation Library for TFHE
Loading...
Searching...
No Matches
Public Member Functions | List of all members
computefhe::FixedPoint Struct Reference

A bit-vector representation of an encrypted or plaintext word. More...

#include <FixedPoint.h>

Inheritance diagram for computefhe::FixedPoint:
Inheritance graph
[legend]
Collaboration diagram for computefhe::FixedPoint:
Collaboration graph
[legend]

Public Member Functions

 FixedPoint ()
 Default constructor.
 
 FixedPoint (size_t n)
 Constructs a bit-vector of size n.
 
 FixedPoint (vector< BinaryDigit >::const_iterator begin, vector< BinaryDigit >::const_iterator end)
 Constructs a bit-vector from a range of BinaryDigit proxies.
 
 FixedPoint (std::initializer_list< BinaryDigit > list)
 Constructs a bit-vector from an initializer list of bits.
 
 FixedPoint (const vector< BinaryDigit > &other)
 Constructs from an existing vector of BinaryDigit proxies.
 
 FixedPoint (const vector< LWECiphertext > &other)
 Constructs from a vector of LWE ciphertexts.
 
 FixedPoint (const vector< LWEPlaintext > &other)
 Constructs from a vector of plaintext bits.
 
bool is_ct () const
 Determines if the bit-vector represents encrypted data.
 

Detailed Description

A bit-vector representation of an encrypted or plaintext word.

Inherits from std::vector<BinaryDigit>. This class represents multi-bit data (such as integers or fixed-point values) where each index corresponds to a single bit position. It is the primary data structure consumed by the BaseALU.

Member Function Documentation

◆ is_ct()

bool computefhe::FixedPoint::is_ct ( ) const

Determines if the bit-vector represents encrypted data.

Returns
True if all bits in the vector are ciphertexts.

The documentation for this struct was generated from the following file: