diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-07-16 21:36:19 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-07-16 21:36:19 +0000 |
| commit | 680344945f84364fbbcbe4d4a353a52d4a724653 (patch) | |
| tree | 1e8f541be4d451eff0e58ec6d76e066dd3167086 /src/2geom/poly.cpp | |
| parent | improving SVG Fonts UI (diff) | |
| download | inkscape-680344945f84364fbbcbe4d4a353a52d4a724653.tar.gz inkscape-680344945f84364fbbcbe4d4a353a52d4a724653.zip | |
update to latest 2geom (rev1497)
(bzr r6332)
Diffstat (limited to 'src/2geom/poly.cpp')
| -rw-r--r-- | src/2geom/poly.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
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 <gsl/gsl_poly.h> +#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 <gsl/gsl_poly.h> -#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: |
