125 for (
int i=1;
i<
k;
i++)
138 for (std::set<gfan::ZCone>::iterator zc=C.begin(); zc!=C.end();)
140 gfan::ZVector
w = zc->getRelativeInteriorPoint();
141 gfan::ZMatrix W = zc->generatorsOfSpan();
147 for (
int j=0;
j<
k;
j++)
156 if (mons.first!=
NULL)
161 gs = inIsSTD->m[mons.second];
164 gs =
witness(mons.first,inIsSTD,ininIs,s);
192 if (zc->contains(wNeg))
197 for (
int j=0;
j<
k;
j++)
202 ininIs =
initial(inIsSTD,s,wNeg,W);
205 if (mons.first!=
NULL)
210 gs = inIsSTD->m[mons.second];
213 gs =
witness(mons.first,inIsSTD,ininIs,s);
const CanonicalForm int s
static ring genericlyWeightedOrdering(const ring r, const gfan::ZVector &u, const gfan::ZVector &w, const gfan::ZMatrix &W, const tropicalStrategy *currentStrategy)
ZConesSortedByDimension tropicalVarietySortedByDimension(const poly g, const ring r, const tropicalStrategy *currentCase)
void id_Delete(ideal *h, ring r)
gfan::ZVector negateWeight(const gfan::ZVector &w) const
int getExpectedDimension() const
returns the expected Dimension of the polyhedral output
poly initial(const poly p, const ring r, const gfan::ZVector w)
Returns the initial form of p with respect to w.
std::set< gfan::ZCone, ZConeCompareDimensionFirst > ZConesSortedByDimension
ideal gfanlib_kStd_wrapper(ideal I, ring r, tHomog h=testHomog)
number(* nMapFunc)(number a, const coeffs src, const coeffs dst)
maps "a", which lives in src, into dst
BOOLEAN idInsertPoly(ideal h1, poly h2)
static ZConesSortedByDimension intersect(const ZConesSortedByDimension &setA, const ZConesSortedByDimension &setB, int d=0)
static FORCE_INLINE nMapFunc n_SetMap(const coeffs src, const coeffs dst)
set the mapping function pointers for translating numbers from src to dst
static void p_Delete(poly *p, const ring r)
ideal idInit(int idsize, int rank)
poly p_PermPoly(poly p, const int *perm, const ring oldRing, const ring dst, nMapFunc nMap, const int *par_perm, int OldPar)
poly witness(const poly m, const ideal I, const ideal inI, const ring r)
Let w be the uppermost weight vector in the matrix defining the ordering on r.
void rDelete(ring r)
unconditionally deletes fields in r
std::pair< poly, int > checkInitialIdealForMonomial(const ideal I, const ring r, const gfan::ZVector &w=0) const
If given w, assuming w is in the Groebner cone of the ordering on r and I is a standard basis with re...
static int idSize(const ideal id)
Count the effective size of an ideal (without the trailing allocated zero-elements) ...