Go to the source code of this file.
◆ tropicalVariety()
Definition at line 41 of file tropicalVariety.cc.
48 poly
g = (poly) u->
Data();
59 res->data = (
char*)
toZFan(maxCones,currentStrategy.getExpectedAmbientDimension());
64 catch (
const std::exception& ex)
66 Werror(
"ERROR: %s",ex.what());
76 number
p = (number)
v->Data();
78 ideal startingIdeal = currentStrategy.getStartingIdeal();
79 ring startingRing = currentStrategy.getStartingRing();
80 poly gStart = startingIdeal->m[0];
81 std::set<gfan::ZCone> maxCones =
tropicalVariety(gStart,startingRing,¤tStrategy);
83 res->data = (
char*)
toZFan(maxCones,currentStrategy.getExpectedAmbientDimension());
88 catch (
const std::exception& ex)
90 Werror(
"ERROR: %s",ex.what());
98 ideal I = (ideal) u->
Data();
111 res->data = (
char*)
toZFan(maxCones,currentStrategy.getExpectedAmbientDimension());
114 catch (
const std::exception& ex)
116 Werror(
"ERROR: %s",ex.what());
124 number
p = (number)
v->Data();
126 ideal startingIdeal = currentStrategy.getStartingIdeal();
127 ring startingRing = currentStrategy.getStartingRing();
128 poly gStart = startingIdeal->m[0];
129 std::set<gfan::ZCone> maxCones =
tropicalVariety(gStart,startingRing,¤tStrategy);
131 res->data = (
char*)
toZFan(maxCones,currentStrategy.getExpectedAmbientDimension());
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");