Lines Matching refs:CoefficientType
28 CoefficientType coef;
81 const_cast<std::vector<CoefficientType> &>(m_coefficients).resize(count);
86 typename PolynomialOver<T>::CoefficientType PolynomialOver<T>::GetCoefficient(unsigned int i, const Ring &ring) const
132 typename PolynomialOver<T>::CoefficientType PolynomialOver<T>::EvaluateAt(const CoefficientType &x, const Ring &ring) const
139 CoefficientType result = m_coefficients[degree];
182 void PolynomialOver<T>::SetCoefficient(unsigned int i, const CoefficientType &value, const Ring &ring)
389 CoefficientType inverse = ring.Inverse(m_coefficients[i]);
456 void RingOfPolynomialsOver<T>::CalculateAlpha(std::vector<CoefficientType> &alpha, const CoefficientType x[], const CoefficientType y[], unsigned int n) const
467 CoefficientType d = m_ring.Subtract(x[j], x[j-k]);
476 typename RingOfPolynomialsOver<T>::Element RingOfPolynomialsOver<T>::Interpolate(const CoefficientType x[], const CoefficientType y[], unsigned int n) const
480 std::vector<CoefficientType> alpha(n);
483 std::vector<CoefficientType> coefficients((size_t)n, m_ring.Identity());
498 typename RingOfPolynomialsOver<T>::CoefficientType RingOfPolynomialsOver<T>::InterpolateAt(const CoefficientType &position, const CoefficientType x[], const CoefficientType y[], unsigned int n) const
502 std::vector<CoefficientType> alpha(n);
505 CoefficientType result = alpha[n-1];