1 #include <gfanlib/gfanlib_vector.h>
8 for (
unsigned i=0;
i<w.size();
i++)
12 std::cout <<
"ERROR: non-positive weight in weight vector" << std::endl
13 <<
"weight: " << w << std::endl;
22 for (
unsigned i=1;
i<w.size();
i++)
26 std::cout <<
"ERROR: non-positive weight in weight vector later entries" << std::endl
27 <<
"weight: " << w << std::endl;
43 gfan::Integer
min=w[0];
44 for (
unsigned i=1;
i<w.size();
i++)
45 if (w[
i]<min) min=w[
i];
51 gfan::ZVector
v=gfan::ZVector(w.size());
52 for (
unsigned i=0;
i<w.size();
i++)
62 gfan::Integer
max=w[1];
63 for (
unsigned i=2;
i<w.size();
i++)
64 if (max<w[
i]) max=w[
i];
67 gfan::ZVector
v=gfan::ZVector(w.size());
69 for (
unsigned i=1; i<w.size(); i++)
84 gfan::Integer
min=e[0];
85 for (
unsigned i=1;
i<e.size();
i++)
86 if (e[
i]<min) min=e[
i];
92 gfan::ZVector
v=gfan::ZVector(e.size());
93 for (
unsigned i=0;
i<e.size();
i++)
106 gfan::Integer
k((
long)0);
107 if (e[0].
sign()<=0 && w[0].
sign()>0)
108 k = gfan::Integer((
long)1)-(e[0]/w[0]);
109 for (
unsigned i=1;
i<e.size();
i++)
113 gfan::Integer kk = gfan::Integer((
long)1)-(e[
i]/w[
i]);
120 gfan::ZVector
v = e+k*
w;
gfan::ZVector nonvalued_adjustWeightUnderHomogeneity(const gfan::ZVector &e, const gfan::ZVector &)
static int min(int a, int b)
static int max(int a, int b)
static bool checkForNonPositiveLaterEntries(const gfan::ZVector &w)
static bool checkForNonPositiveEntries(const gfan::ZVector &w)
gfan::ZVector valued_adjustWeightUnderHomogeneity(const gfan::ZVector &e, const gfan::ZVector &w)
const Variable & v
< [in] a sqrfree bivariate poly
gfan::ZVector nonvalued_adjustWeightForHomogeneity(const gfan::ZVector &w)
gfan::ZVector valued_adjustWeightForHomogeneity(const gfan::ZVector &w)