fieker-DuValspielwiese
Last change
on this file since 117e00e was
117e00e,
checked in by Hans Schoenemann <hannes@…>, 6 years ago
|
removed unused system includes, math.h ->cmath for .cc files
|
-
Property mode set to
100644
|
File size:
1005 bytes
|
Line | |
---|
1 | #ifndef GFANLIB_TROPICALVARIETYOFPOLYNOMIALS_H |
---|
2 | #define GFANLIB_TROPICALVARIETYOFPOLYNOMIALS_H |
---|
3 | |
---|
4 | #include "gfanlib/gfanlib.h" |
---|
5 | #include "polys/monomials/p_polys.h" |
---|
6 | |
---|
7 | #include "tropicalStrategy.h" |
---|
8 | |
---|
9 | #ifndef SING_NDEBUG |
---|
10 | #include "Singular/subexpr.h" // for leftv |
---|
11 | #include "bbfan.h" // for fanID |
---|
12 | #endif |
---|
13 | |
---|
14 | struct ZConeCompareDimensionFirst |
---|
15 | { |
---|
16 | bool operator() (const gfan::ZCone &zc, const gfan::ZCone &zd) const |
---|
17 | { |
---|
18 | int n = zc.dimension(); |
---|
19 | int m = zd.dimension(); |
---|
20 | if (n==m) |
---|
21 | return zc<zd; |
---|
22 | else |
---|
23 | return n>m; |
---|
24 | } |
---|
25 | }; |
---|
26 | |
---|
27 | typedef std::set<gfan::ZCone,ZConeCompareDimensionFirst> ZConesSortedByDimension; |
---|
28 | |
---|
29 | std::set<gfan::ZCone> tropicalVariety(const poly g, const ring r, const tropicalStrategy* currentCase); |
---|
30 | ZConesSortedByDimension tropicalVarietySortedByDimension(const poly g, const ring r, const tropicalStrategy* currentCase); |
---|
31 | |
---|
32 | #ifndef SING_NDEBUG |
---|
33 | BOOLEAN tropicalVariety00(leftv res, leftv args); |
---|
34 | BOOLEAN tropicalVariety01(leftv res, leftv args); |
---|
35 | #endif |
---|
36 | |
---|
37 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.