6#include "gfanlib/gfanlib.h"
15 for (
unsigned i=0;
i<
w.size();
i++)
19 std::cout <<
"ERROR: non-positive weight in weight vector" << std::endl
20 <<
"weight: " <<
w << std::endl;
29 for (
unsigned i=1;
i<
w.size();
i++)
33 std::cout <<
"ERROR: non-positive weight in weight vector later entries" << std::endl
34 <<
"weight: " <<
w << std::endl;
53 ideal NF1 =
kNF(stdI,
s->qideal,stdJ);
54 ideal NF2 =
kNF(stdJ,
s->qideal,stdI);
64 std::cout <<
"ERROR: input ideals not equal!" << std::endl;
74bool checkWeightVector(
const ideal I,
const ring r,
const gfan::ZVector &weightVector,
bool checkBorder)
77 if (!cI.contains(weightVector))
79 std::cout <<
"ERROR: weight vector not inside maximal Gröbner cone" << std::endl;
82 if (checkBorder && cI.containsRelatively(weightVector))
84 std::cout <<
"ERROR: weight vector in the relative interior of maximal Gröbner cone" << std::endl;
100 v = gfan::Integer((
long)-1)*
v;
103 std::cout <<
"ERROR: weight of ordering not inside Groebner cone!" << std::endl;
114 return ((!I) || (I && r));
119 return zc.containsRelatively(
p);
gfan::ZVector wvhdlEntryToZVector(const int n, const int *wvhdl0)
static FORCE_INLINE nMapFunc n_SetMap(const coeffs src, const coeffs dst)
set the mapping function pointers for translating numbers from src to dst
number(* nMapFunc)(number a, const coeffs src, const coeffs dst)
maps "a", which lives in src, into dst
const CanonicalForm int s
const Variable & v
< [in] a sqrfree bivariate poly
BOOLEAN idIs0(ideal h)
returns true if h is the zero ideal
poly kNF(ideal F, ideal Q, poly p, int syzComp, int lazyReduce)
poly p_PermPoly(poly p, const int *perm, const ring oldRing, const ring dst, nMapFunc nMap, const int *par_perm, int OldPar, BOOLEAN use_mult)
void rChangeCurrRing(ring r)
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static short rVar(const ring r)
#define rVar(r) (r->N)
ideal idInit(int idsize, int rank)
initialise an ideal / module
void id_Delete(ideal *h, ring r)
deletes an ideal/module/matrix
ideal gfanlib_kStd_wrapper(ideal I, ring r, tHomog h=testHomog)
bool checkWeightVector(const ideal I, const ring r, const gfan::ZVector &weightVector, bool checkBorder)
bool checkPolyhedralInput(const gfan::ZCone zc, const gfan::ZVector p)
bool checkForNonPositiveEntries(const gfan::ZVector &w)
bool checkOrderingAndCone(const ring r, const gfan::ZCone zc)
bool checkPolynomialInput(const ideal I, const ring r)
bool areIdealsEqual(ideal I, ring r, ideal J, ring s)
bool checkForNonPositiveLaterEntries(const gfan::ZVector &w)
gfan::ZCone maximalGroebnerCone(const ideal &I, const ring &r)