12 #include <gfanlib/gfanlib_zfan.h> 35 static gfan::ZFan*
toZFan(std::set<gfan::ZCone> maxCones,
int d)
37 gfan::ZFan* zf =
new gfan::ZFan(d);
38 for (std::set<gfan::ZCone>::iterator sigma = maxCones.begin(); sigma!=maxCones.end(); sigma++)
65 catch (
const std::exception& ex)
67 Werror(
"ERROR: %s",ex.what());
77 number
p = (number) v->
Data();
81 poly gStart = startingIdeal->m[0];
82 std::set<gfan::ZCone> maxCones =
tropicalVariety(gStart,startingRing,¤tStrategy);
89 catch (
const std::exception& ex)
91 Werror(
"ERROR: %s",ex.what());
99 ideal I = (ideal) u->
Data();
115 catch (
const std::exception& ex)
117 Werror(
"ERROR: %s",ex.what());
125 number
p = (number) v->
Data();
129 poly gStart = startingIdeal->m[0];
130 std::set<gfan::ZCone> maxCones =
tropicalVariety(gStart,startingRing,¤tStrategy);
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 getStartingRing() const
returns the polynomial ring over the valuation ring
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
#define SI_RESTORE_OPT(A, B)
static gfan::ZFan * toZFan(std::set< gfan::ZCone > maxCones, int d)
ideal gfanlib_kStd_wrapper(ideal I, ring r, tHomog h=testHomog)
ideal getStartingIdeal() const
returns the input ideal
BOOLEAN tropicalVariety(leftv res, leftv args)
int getExpectedAmbientDimension() const
ideal idInit(int idsize, int rank)
initialise an ideal / module
const Variable & v
< [in] a sqrfree bivariate poly
implementation of the class groebnerCone
#define SI_SAVE_OPT(A, B)
static int idSize(const ideal id)
Count the effective size of an ideal (without the trailing allocated zero-elements) ...
static void undoSetOptionRedSB()
void Werror(const char *fmt,...)