Template Function lbcrypto::GetMultiplicativeDepthByCoeffVector

Function Documentation

template<typename VecDType>
uint32_t lbcrypto::GetMultiplicativeDepthByCoeffVector(const std::vector<VecDType> &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