Function lbcrypto::IsNotEqualOne(std::complex<double>, double)
Defined in File ckksrns-utils.h
Function Documentation
-
inline bool lbcrypto::IsNotEqualOne(std::complex<double> val, double delta = 0x1p-44)
Checks whether a complex value differs from 1 by more than a tolerance in its real or imaginary part.
- Parameters
val – the value
delta – the tolerance
- Returns
true if |Re(val) - 1| > delta or |Im(val)| > delta