5 #ifndef _PFASST__POLYNOMIAL_HPP_
6 #define _PFASST__POLYNOMIAL_HPP_
27 template<
typename CoeffT>
65 CoeffT& operator[](
const size_t i);
94 template<
typename xtype>
97 size_t n = this->order();
99 for (
int j = n - 1; j >= 0; j--) {
117 vector<CoeffT> roots(
size_t num_iterations=100, CoeffT ztol=1.0e-20)
const;
135 #endif // _PFASST__POLYNOMIAL_HPP_
Representation of a polynomial including differentiation, integration and root finding.
vector< CoeffT > c
Coefficients of the polynomial.
xtype evaluate(const xtype x) const
Evaluate polynomial for given value.