diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2011-06-23 16:38:51 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2011-06-23 16:38:51 +0000 |
| commit | 1079b1b4c0331e5d4bd62f3c93349aec50f520f0 (patch) | |
| tree | 50b185ea8e291e6bdbbd36dddc76820e88f44309 /src/2geom/choose.h | |
| parent | Remove the dom/work directory (diff) | |
| download | inkscape-1079b1b4c0331e5d4bd62f3c93349aec50f520f0.tar.gz inkscape-1079b1b4c0331e5d4bd62f3c93349aec50f520f0.zip | |
Update 2Geom to pull in integer rectangle class
(bzr r10347.1.1)
Diffstat (limited to 'src/2geom/choose.h')
| -rw-r--r-- | src/2geom/choose.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/src/2geom/choose.h b/src/2geom/choose.h index 3fecf1ba2..64ce76f39 100644 --- a/src/2geom/choose.h +++ b/src/2geom/choose.h @@ -1,7 +1,7 @@ /** - * \file choose.h - * \brief \todo brief description - * + * \file + * \brief Calculation of binomial cefficients + *//* * Copyright 2006 Nathan Hurst <njh@mail.csse.monash.edu.au> * * This library is free software; you can redistribute it and/or @@ -29,10 +29,13 @@ * */ -#ifndef _CHOOSE_H -#define _CHOOSE_H +#ifndef LIB2GEOM_SEEN_CHOOSE_H +#define LIB2GEOM_SEEN_CHOOSE_H + #include <vector> +namespace Geom { + // XXX: Can we keep only the left terms easily? // this would more than halve the array // row index becomes n2 = n/2, row2 = n2*(n2+1)/2, row = row2*2+(n&1)?n2:0 @@ -121,13 +124,9 @@ class BinomialCoefficient container_type coefficients; }; +} // end namespace Geom - - - - - -#endif +#endif // LIB2GEOM_SEEN_CHOOSE_H /* Local Variables: |
