| 28 | |
| 29 | template<typename PolynomialType> |
| 30 | PolynomialType polyder(const PolynomialType& p) |
| 31 | { |
| 32 | typedef typename PolynomialType::Scalar Scalar; |
| 33 | PolynomialType res(p.size()); |
| 34 | for(Index i=1; i<p.size(); ++i) |
| 35 | res[i-1] = p[i]*Scalar(i); |
| 36 | res[p.size()-1] = 0.; |
| 37 | return res; |
| 38 | } |
| 39 | |
| 40 | template<int Deg, typename POLYNOMIAL, typename SOLVER> |
| 41 | bool aux_evalSolver( const POLYNOMIAL& pols, SOLVER& psolve ) |