486 if ((strat->
Ll==-1) && (strat->
sl>=0))
491 while (strat->
Ll >= 0)
509 strat->
P = strat->
L[strat->
Ll];
532 red_result = strat->
red(&strat->
P,strat);
533 if (strat->
P.p !=
NULL)
559 fac->m[0]=strat->
P.p;
594 if (n->
sl==-1) pos=0;
632 for(ii=0; ii<=n->
tl; ii++)
634 if (n->
R[ii]->p==n->
L[
i].p1) { n->
L[
i].i_r1=ii;
break; }
637 for(ii=0; ii<=n->
tl; ii++)
639 if (n->
R[ii]->p==n->
L[
i].p2) { n->
L[
i].i_r2=ii;
break; }
655 ideal r=
idAdd(n->
D,fac_copy);
667 fac_copy->m[
i]=
pCopy(fac->m[
i]);
683 Print(
"empty set s(%d) because: D[%d]:", n->
nr,
j);
695 if (n->
S[
i]==n->
T[n->
tl].p)
723 if ((n->
sl>=0)&&(n->
S[0]!=
NULL))
731 Print(
"empty set s(%d) because:L[%d]\n",n->
nr,Lj->nr);
733 Print(
"empty set s(%d) because:\n",n->
nr);
743 if (n->
S[
i]==n->
T[n->
tl].p)
772 if ((strat->
Ll==-1) && (strat->
sl>=0))
795 return (strat->
Shdl);
void(* enterS)(LObject &h, int pos, kStrategy strat, int atR)
void(* initEcart)(TObject *L)
int(* red)(LObject *L, kStrategy strat)
#define idDelete(H)
delete an ideal
BOOLEAN idIs0(ideal h)
returns true if h is the zero ideal
ideal idAdd(ideal h1, ideal h2)
h1 + h2
KINLINE poly ksOldCreateSpoly(poly p1, poly p2, poly spNoether, ring r)
KINLINE poly redtailBba(poly p, int pos, kStrategy strat, BOOLEAN normalize)
poly kNF(ideal F, ideal Q, poly p, int syzComp, int lazyReduce)
static void completeReduceFac(kStrategy strat, ideal_list FL)
kStrategy kStratCopy(kStrategy o)
BOOLEAN k_factorize(poly p, ideal &rfac, ideal &fac_copy)
void message(int i, int *reduc, int *olddeg, kStrategy strat, int red_result)
void enterT(LObject &p, kStrategy strat, int atT)
BOOLEAN kTest_TS(kStrategy strat)
void enterpairs(poly h, int k, int ecart, int pos, kStrategy strat, int atR)
void exitBuchMora(kStrategy strat)
int posInS(const kStrategy strat, const int length, const poly p, const int ecart_p)
void updateResult(ideal r, ideal Q, kStrategy strat)
void deleteInL(LSet set, int *length, int j, kStrategy strat)
void messageSets(kStrategy strat)
void messageStat(int hilbcount, kStrategy strat)
static void kDeleteLcm(LObject *P)
void iiWriteMatrix(matrix im, const char *n, int dim, const ring r, int spaces)
set spaces to zero by default
#define omFreeSize(addr, size)
#define TEST_OPT_INTSTRATEGY
#define TEST_OPT_DEGBOUND
void pRestoreDegProcs(ring r, pFDegProc old_FDeg, pLDegProc old_lDeg)
static unsigned pLength(poly a)
VAR ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
static void pLmFree(poly p)
frees the space of the monomial m, assumes m != NULL coef is not freed, m is not advanced
#define pCopy(p)
return a copy of the poly
void PrintS(const char *s)
void idSkipZeroes(ideal ide)
gives an ideal/module the minimal possible size
EXTERN_VAR short * ecartWeights