Function lbcrypto::CoeffEncodingOneLevel

Function Documentation

std::vector<std::vector<std::complex<double>>> lbcrypto::CoeffEncodingOneLevel(const std::vector<std::complex<double>> &pows, const std::vector<uint32_t> &rotGroup, bool flag_i)

Computes the coefficients for the FFT encoding for CoeffEncodingCollapse such that every iteration occupies one level.

Parameters
  • pows – vector of roots of unity powers.

  • rotGroup – rotation group indices to appropriately choose the elements of pows to compute iFFT.

  • flag_i – flag that is 0 when we compute the coefficients for conj(U_0^T) and is 1 for conj(i*U_0^T).