3 #include <gfanlib/gfanlib_vector.h> 17 gfan::Integer
min=w[0];
18 for (
unsigned i=1;
i<w.size();
i++)
19 if (w[
i]<min) min=w[
i];
25 gfan::ZVector
v=gfan::ZVector(w.size());
26 for (
unsigned i=0;
i<w.size();
i++)
36 gfan::Integer
max=w[1];
37 for (
unsigned i=2;
i<w.size();
i++)
38 if (max<w[
i]) max=w[
i];
41 gfan::ZVector
v=gfan::ZVector(w.size());
43 for (
unsigned i=1; i<w.size(); i++)
58 gfan::Integer
min=e[0];
59 for (
unsigned i=1;
i<e.size();
i++)
60 if (e[
i]<min) min=e[
i];
66 gfan::ZVector
v=gfan::ZVector(e.size());
67 for (
unsigned i=0;
i<e.size();
i++)
80 gfan::Integer
k((
long)0);
82 k = gfan::Integer((
long)1)-(e[0]/w[0]);
83 for (
unsigned i=1;
i<e.size();
i++)
87 gfan::Integer kk = gfan::Integer((
long)1)-(e[
i]/w[
i]);
94 gfan::ZVector
v = e+k*
w;
bool checkForNonPositiveEntries(const gfan::ZVector &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)
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)
bool checkForNonPositiveLaterEntries(const gfan::ZVector &w)