From 680344945f84364fbbcbe4d4a353a52d4a724653 Mon Sep 17 00:00:00 2001 From: "Johan B. C. Engelen" Date: Wed, 16 Jul 2008 21:36:19 +0000 Subject: update to latest 2geom (rev1497) (bzr r6332) --- src/2geom/poly.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'src/2geom/poly.cpp') diff --git a/src/2geom/poly.cpp b/src/2geom/poly.cpp index 1b9b0e568..d8b379557 100644 --- a/src/2geom/poly.cpp +++ b/src/2geom/poly.cpp @@ -1,5 +1,12 @@ #include <2geom/poly.h> +#define HAVE_GSL +#ifdef HAVE_GSL +#include +#endif + +namespace Geom { + Poly Poly::operator*(const Poly& p) const { Poly result; result.resize(degree() + p.degree()+1); @@ -11,10 +18,6 @@ Poly Poly::operator*(const Poly& p) const { } return result; } -#define HAVE_GSL -#ifdef HAVE_GSL -#include -#endif /*double Poly::eval(double x) const { return gsl_poly_eval(&coeff[0], size(), x); @@ -151,6 +154,7 @@ Poly divide(Poly const &a, Poly const &b, Poly &r) { c.resize(k, 0.); for(unsigned i = k; i >= l; i--) { + //assert(i >= 0); double ci = r.back()/b.back(); c[i-l] += ci; Poly bb = ci*b; @@ -184,6 +188,7 @@ Poly gcd(Poly const &a, Poly const &b, const double /*tol*/) { assert(1); }*/ +} //namespace Geom /* Local Variables: -- cgit v1.2.3