11 #include "gfanlib/gfanlib_zfan.h"
34 static gfan::ZFan*
toZFan(std::set<gfan::ZCone> maxCones,
int d)
36 gfan::ZFan* zf =
new gfan::ZFan(d);
37 for (std::set<gfan::ZCone>::iterator sigma = maxCones.begin(); sigma!=maxCones.end(); sigma++)
48 poly
g = (poly) u->
Data();
64 catch (
const std::exception& ex)
66 Werror(
"ERROR: %s",ex.what());
76 number
p = (number)
v->Data();
80 poly gStart = startingIdeal->m[0];
81 std::set<gfan::ZCone> maxCones =
tropicalVariety(gStart,startingRing,¤tStrategy);
88 catch (
const std::exception& ex)
90 Werror(
"ERROR: %s",ex.what());
98 ideal I = (ideal) u->
Data();
114 catch (
const std::exception& ex)
116 Werror(
"ERROR: %s",ex.what());
124 number
p = (number)
v->Data();
128 poly gStart = startingIdeal->m[0];
129 std::set<gfan::ZCone> maxCones =
tropicalVariety(gStart,startingRing,¤tStrategy);
134 catch (
const std::exception& ex)
136 Werror(
"ERROR: %s",ex.what());
155 res->data = (
char*) tropI;
160 catch (
const std::exception& ex)
162 Werror(
"ERROR: %s",ex.what());
170 number
p = (number)
v->Data();
179 res->data = (
char*) tropI;
183 catch (
const std::exception& ex)
185 Werror(
"ERROR: %s",ex.what());
191 WerrorS(
"tropicalVariety: unexpected parameters");