Function lbcrypto::GetMultiplicativeDepthByCoeffVector

Function Documentation

uint32_t lbcrypto::GetMultiplicativeDepthByCoeffVector(const std::vector<double> &vec, bool isNormalized = false)

Get the depth for a given vector of coefficients for the Paterson-Stockmeyer algorithm. The functions is based on the table described in src/pke/examples/FUNCTION_EVALUATION.md

Parameters
  • vec – vector of coefficients

  • isNormalized – true if the vector normalized. false is the default value

Returns

multiplicative depth