ComputeFHE 1.0
General-Purpose Privacy-Preserving Computation Library for TFHE
Loading...
Searching...
No Matches
Classes | Functions
Efixedpoint.h File Reference

Defines the encrypted fixed-point number representation and operations. More...

#include <computefhe/Einteger.h>
Include dependency graph for Efixedpoint.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  computefhe::Efixedpoint
 Represents an encrypted fixed-point number. More...
 
class  computefhe::EFix< TOTAL_BITS, FRAC_BITS, SIGNED >
 Template class for fixed-precision encrypted real numbers. More...
 

Functions

ostreamcomputefhe::operator<< (ostream &out, const Efixedpoint &obj)
 
const Einteger computefhe::operator== (double a, const Efixedpoint &b)
 
const Einteger computefhe::operator!= (double a, const Efixedpoint &b)
 
const Einteger computefhe::operator> (double a, const Efixedpoint &b)
 
const Einteger computefhe::operator>= (double a, const Efixedpoint &b)
 
const Einteger computefhe::operator< (double a, const Efixedpoint &b)
 
const Einteger computefhe::operator<= (double a, const Efixedpoint &b)
 
const Efixedpoint computefhe::operator+ (double a, const Efixedpoint &b)
 
const Efixedpoint computefhe::operator- (double a, const Efixedpoint &b)
 
const Efixedpoint computefhe::operator* (double a, const Efixedpoint &b)
 
const Efixedpoint computefhe::operator/ (double a, const Efixedpoint &b)
 

Detailed Description

Defines the encrypted fixed-point number representation and operations.

Function Documentation

◆ operator!=()

const Einteger computefhe::operator!= ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value.
Returns
An Einteger representing the encrypted boolean result (1 if not equal).

◆ operator*()

const Efixedpoint computefhe::operator* ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value.
Returns
A new Efixedpoint representing the encrypted product (a * b).

◆ operator+()

const Efixedpoint computefhe::operator+ ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value.
Returns
A new Efixedpoint representing the encrypted sum (a + b).

◆ operator-()

const Efixedpoint computefhe::operator- ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value.
Returns
A new Efixedpoint representing the encrypted difference (a - b).

◆ operator/()

const Efixedpoint computefhe::operator/ ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value (divisor).
Returns
A new Efixedpoint representing the encrypted quotient (a / b).

◆ operator<()

const Einteger computefhe::operator< ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value.
Returns
An Einteger representing the encrypted boolean result (1 if a < b).

◆ operator<<()

ostream & computefhe::operator<< ( ostream out,
const Efixedpoint obj 
)
Parameters
outThe output stream.
objThe Efixedpoint object to decrypt and print.
Returns
A reference to the output stream.

◆ operator<=()

const Einteger computefhe::operator<= ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value.
Returns
An Einteger representing the encrypted boolean result (1 if a <= b).

◆ operator==()

const Einteger computefhe::operator== ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value.
Returns
An Einteger representing the encrypted boolean result (1 if equal).

◆ operator>()

const Einteger computefhe::operator> ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value.
Returns
An Einteger representing the encrypted boolean result (1 if a

‍b).

◆ operator>=()

const Einteger computefhe::operator>= ( double  a,
const Efixedpoint b 
)
Parameters
aThe plaintext double value.
bThe encrypted fixed-point value.
Returns
An Einteger representing the encrypted boolean result (1 if a >= b).