Function lbcrypto::IsNotEqualZero(std::complex<double>, double)

Function Documentation

inline bool lbcrypto::IsNotEqualZero(std::complex<double> val, double delta = 0x1p-44)

Checks whether a complex value differs from 0 by more than a tolerance in its real or imaginary part.

Parameters
  • val – the value

  • delta – the tolerance

Returns

true if |Re(val)| > delta or |Im(val)| > delta