Go to the source code of this file.
|
void | kEcartWeights (poly *s, int sl, short *eweight, const ring R) |
|
long | maxdegreeWecart (poly p, int *l, ring r) |
|
long | totaldegreeWecart (poly p, ring r) |
|
long | totaldegreeWecart_IV (poly p, ring r, const int *w) |
|
int * | iv2array (intvec *iv, const ring R) |
|
double | wFunctionalBuch (int *degw, int *lpol, int npol, double *rel, double wx, double wNsqr) |
|
void | wCall (poly *s, int sl, int *x, double wNsqr, const ring R) |
|
◆ iv2array()
Definition at line 200 of file weight.cc.
201{
203 int len=0;
207
208 for(
i=len;
i>0;
i--)
s[
i]=(*iv)[
i-1];
210}
static int si_min(const int a, const int b)
const CanonicalForm int s
static short rVar(const ring r)
#define rVar(r) (r->N)
◆ kEcartWeights()
Definition at line 182 of file weight.cc.
183{
186
191 else
194 wCall(
s, sl,
x, (
double)2.0 / (
double)n,
R);
195 for (
i = n;
i!=0;
i--)
198}
#define omFreeSize(addr, size)
BOOLEAN rHasLocalOrMixedOrdering(const ring r)
THREAD_VAR double(* wFunctional)(int *degw, int *lpol, int npol, double *rel, double wx, double wNsqr)
void wCall(poly *s, int sl, int *x, double wNsqr, const ring R)
double wFunctionalBuch(int *degw, int *lpol, int npol, double *rel, double wx, double wNsqr)
double wFunctionalMora(int *degw, int *lpol, int npol, double *rel, double wx, double wNsqr)
◆ maxdegreeWecart()
Definition at line 247 of file weight.cc.
248{
252
256 {
261 }
264}
static int max(int a, int b)
long totaldegreeWecart(poly p, ring r)
◆ totaldegreeWecart()
long totaldegreeWecart |
( |
poly |
p, |
|
|
ring |
r |
|
) |
| |
Definition at line 217 of file weight.cc.
218{
221
225}
static long p_GetExp(const poly p, const unsigned long iBitmask, const int VarOffset)
get a single variable exponent @Note: the integer VarOffset encodes:
EXTERN_VAR short * ecartWeights
◆ totaldegreeWecart_IV()
◆ wCall()
Definition at line 108 of file weight.cc.
109{
114
119 for (
i = n;
i!=0;
i--)
122 {
124 return;
125 }
128 q = (n + 1) *
mons *
sizeof(
int);
133 for (
i = n;
i!=0;
i--)
140 memset(
x, 0, (n + 1) *
sizeof(
int));
145 for (
i = n;
i!=0;
i--)
146 {
149 }
153 {
154 for (
i = n;
i!=0;
i--)
156 }
157 else
158 {
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175 }
179}
void wFirstSearch(int *A, int *x, int mons, int *lpol, int npol, double *rel, double *fopt, double wNsqr, int rvar)
void wSecondSearch(int *A, int *x, int *lpol, int npol, int mons, double *rel, double *fk, double wNsqr, int rvar)
static void wDimensions(poly *s, int sl, int *lpol, int *npol, int *mons)
void wNorm(int *degw, int *lpol, int npol, double *rel)
static void wInit(poly *s, int sl, int mons, int *A, const ring R)
void wAdd(int *A, int mons, int kn, int xx, int rvar)
◆ wFunctionalBuch()
Definition at line 78 of file weight0.cc.
80{
84 double *r;
85
91 {
94 {
100 }
105 }
106 if (
ghom > (
double)0.5)
109}
Rational pow(const Rational &a, int e)
◆ ecartWeights
◆ wFunctional
THREAD_VAR double(* wFunctional) (int *degw, int *lpol, int npol, double *rel, double wx, double wNsqr) |
( |
int * |
degw, |
|
|
int * |
lpol, |
|
|
int |
npol, |
|
|
double * |
rel, |
|
|
double |
wx, |
|
|
double |
wNsqr |
|
) |
| |