60 res->
data = (
char*)
toZFan(maxCones,currentStrategy.getExpectedAmbientDimension());
65 catch (
const std::exception& ex)
67 Werror(
"ERROR: %s",ex.what());
77 number
p = (number) v->
Data();
79 ideal startingIdeal = currentStrategy.getStartingIdeal();
80 ring startingRing = currentStrategy.getStartingRing();
81 poly gStart = startingIdeal->m[0];
82 std::set<gfan::ZCone> maxCones =
tropicalVariety(gStart,startingRing,¤tStrategy);
84 res->
data = (
char*)
toZFan(maxCones,currentStrategy.getExpectedAmbientDimension());
89 catch (
const std::exception& ex)
91 Werror(
"ERROR: %s",ex.what());
99 ideal I = (ideal) u->
Data();
112 res->
data = (
char*)
toZFan(maxCones,currentStrategy.getExpectedAmbientDimension());
115 catch (
const std::exception& ex)
117 Werror(
"ERROR: %s",ex.what());
125 number p = (number) v->
Data();
127 ideal startingIdeal = currentStrategy.getStartingIdeal();
128 ring startingRing = currentStrategy.getStartingRing();
129 poly gStart = startingIdeal->m[0];
130 std::set<gfan::ZCone> maxCones =
tropicalVariety(gStart,startingRing,¤tStrategy);
132 res->
data = (
char*)
toZFan(maxCones,currentStrategy.getExpectedAmbientDimension());
135 catch (
const std::exception& ex)
137 Werror(
"ERROR: %s",ex.what());
156 res->
data = (
char*) tropI;
161 catch (
const std::exception& ex)
163 Werror(
"ERROR: %s",ex.what());
171 number p = (number) v->
Data();
180 res->
data = (
char*) tropI;
184 catch (
const std::exception& ex)
186 Werror(
"ERROR: %s",ex.what());
192 WerrorS(
"tropicalVariety: unexpected parameters");
Class used for (list of) interpreter objects.
static void setOptionRedSB()
ideal id_Copy(ideal h1, const ring r)
copy an ideal
void id_Delete(ideal *h, ring r)
deletes an ideal/module/matrix
void WerrorS(const char *s)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static gfan::ZFan * toZFan(std::set< gfan::ZCone > maxCones, int d)
ideal gfanlib_kStd_wrapper(ideal I, ring r, tHomog h=testHomog)
BOOLEAN tropicalVariety(leftv res, leftv args)
ideal idInit(int idsize, int rank)
initialise an ideal / module
const Variable & v
< [in] a sqrfree bivariate poly
int idElem(const ideal F)
count non-zero elements
static void undoSetOptionRedSB()
void Werror(const char *fmt,...)