Template Struct longDiv

Template Parameter Order

  1. typename VecDType

Struct Documentation

template<typename VecDType>
struct lbcrypto::longDiv

Quotient and remainder of a polynomial long division (LongDivisionPoly, LongDivisionChebyshev).

Public Functions

longDiv() = default
inline longDiv(const std::vector<VecDType> &q0, const std::vector<VecDType> &r0)

Constructs the result from the quotient and remainder coefficients.

Parameters
  • q0 – coefficients of the quotient

  • r0 – coefficients of the remainder

Public Members

std::vector<VecDType> q

coefficients of the quotient

std::vector<VecDType> r

coefficients of the remainder