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");
Class used for (list of) interpreter objects.
const Variable & v
< [in] a sqrfree bivariate poly
void WerrorS(const char *s)
ideal id_Copy(ideal h1, const ring r)
copy an ideal
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
void Werror(const char *fmt,...)
ideal idInit(int idsize, int rank)
initialise an ideal / module
void id_Delete(ideal *h, ring r)
deletes an ideal/module/matrix
static int idElem(const ideal F)
number of non-zero polys in F
ideal gfanlib_kStd_wrapper(ideal I, ring r, tHomog h=testHomog)
static gfan::ZFan * toZFan(std::set< gfan::ZCone > maxCones, int d)
static void setOptionRedSB()
BOOLEAN tropicalVariety(leftv res, leftv args)
static void undoSetOptionRedSB()