#include <gfanlib/gfanlib_vector.h>
#include <kernel/mod2.h>
Go to the source code of this file.
static bool checkForNonPositiveEntries |
( |
const gfan::ZVector & |
w | ) |
|
|
static |
Definition at line 6 of file adjustWeights.cc.
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;
static bool checkForNonPositiveLaterEntries |
( |
const gfan::ZVector & |
w | ) |
|
|
static |
Definition at line 20 of file adjustWeights.cc.
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;
gfan::ZVector nonvalued_adjustWeightForHomogeneity |
( |
const gfan::ZVector & |
w | ) |
|
Definition at line 40 of file adjustWeights.cc.
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++)
static int min(int a, int b)
static bool checkForNonPositiveEntries(const gfan::ZVector &w)
const Variable & v
< [in] a sqrfree bivariate poly
gfan::ZVector nonvalued_adjustWeightUnderHomogeneity |
( |
const gfan::ZVector & |
e, |
|
|
const gfan::ZVector & |
|
|
) |
| |
Definition at line 80 of file adjustWeights.cc.
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++)
static int min(int a, int b)
static bool checkForNonPositiveEntries(const gfan::ZVector &w)
const Variable & v
< [in] a sqrfree bivariate poly
gfan::ZVector valued_adjustWeightForHomogeneity |
( |
const gfan::ZVector & |
w | ) |
|
Definition at line 58 of file adjustWeights.cc.
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++)
static int max(int a, int b)
static bool checkForNonPositiveLaterEntries(const gfan::ZVector &w)
const Variable & v
< [in] a sqrfree bivariate poly
gfan::ZVector valued_adjustWeightUnderHomogeneity |
( |
const gfan::ZVector & |
e, |
|
|
const gfan::ZVector & |
w |
|
) |
| |
Definition at line 99 of file adjustWeights.cc.
106 gfan::Integer
k((
long)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;
static bool checkForNonPositiveLaterEntries(const gfan::ZVector &w)
const Variable & v
< [in] a sqrfree bivariate poly