547 if ((strat->
Ll==-1) && (strat->
sl>=0))
552 while (strat->
Ll >= 0)
570 strat->
P = strat->
L[strat->
Ll];
593 red_result = strat->
red(&strat->
P,strat);
594 if (strat->
P.p !=
NULL)
620 fac->m[0]=strat->
P.p;
655 if (n->
sl==-1) pos=0;
693 for(ii=0; ii<=n->
tl; ii++)
695 if (n->
R[ii]->p==n->
L[i].p1) { n->
L[
i].i_r1=ii;
break; }
698 for(ii=0; ii<=n->
tl; ii++)
700 if (n->
R[ii]->p==n->
L[i].p2) { n->
L[
i].i_r2=ii;
break; }
731 Print(
"-------------------------------------------------------------\ns(%d), set S\n",n->
nr);
732 for(ii=0;ii<n->
sl;ii++)
744 fac_copy->m[
i]=
pCopy(fac->m[i]);
753 if (n->
D->m[j]!=
NULL)
761 Print(
"empty set s(%d) because: D[%d] -> 0\n",
768 PrintS(
"empty set because:");
781 if (n->
S[i]==n->
T[n->
tl].p)
809 if ((n->
sl>=0)&&(n->
S[0]!=
NULL))
817 Print(
"empty set s(%d) because:L[%d]\n",n->
nr,Lj->nr);
824 Print(
"empty set because:L[%p]\n",(
void*)Lj);
832 if (n->
S[i]==n->
T[n->
tl].p)
861 if ((strat->
Ll==-1) && (strat->
sl>=0))
882 return (strat->
Shdl);
poly kNF(ideal F, ideal Q, poly p, int syzComp, int lazyReduce)
#define TEST_OPT_DEGBOUND
void message(int i, int *reduc, int *olddeg, kStrategy strat, int red_result)
void messageStat(int hilbcount, kStrategy strat)
void enterT(LObject p, kStrategy strat, int atT)
#define omFreeSize(addr, size)
const CanonicalForm CFMap CFMap int &both_non_zero int n
void enterpairs(poly h, int k, int ecart, int pos, kStrategy strat, int atR)
KINLINE poly ksOldCreateSpoly(poly p1, poly p2, poly spNoether, ring r)
ideal idAdd(ideal h1, ideal h2, const ring R=currRing)
h1 + h2
int(* red)(LObject *L, kStrategy strat)
KINLINE poly redtailBba(poly p, int pos, kStrategy strat, BOOLEAN normalize)
void iiWriteMatrix(matrix im, const char *n, int dim, const ring r, int spaces)
set spaces to zero by default
void deleteInL(LSet set, int *length, int j, kStrategy strat)
void(* initEcart)(TObject *L)
ring currRing
Widely used global variable which specifies the current polynomial ring for Singular interpreter and ...
#define TEST_OPT_INTSTRATEGY
kStrategy kStratCopy(kStrategy o)
void idDelete(ideal *h, ring r=currRing)
delete an ideal
void PrintS(const char *s)
void idSkipZeroes(ideal ide)
void pRestoreDegProcs(ring r, pFDegProc old_FDeg, pLDegProc old_lDeg)
static void completeReduceFac(kStrategy strat, ideal_list FL)
void pNorm(poly p, const ring R=currRing)
int posInS(const kStrategy strat, const int length, const poly p, const int ecart_p)
void updateResult(ideal r, ideal Q, kStrategy strat)
static void pLmFree(poly p)
frees the space of the monomial m, assumes m != NULL coef is not freed, m is not advanced ...
ideal idCopy(ideal A, const ring R=currRing)
BOOLEAN k_factorize(poly p, ideal &rfac, ideal &fac_copy)
void(* enterS)(LObject h, int pos, kStrategy strat, int atR)
void exitBuchMora(kStrategy strat)
#define pCopy(p)
return a copy of the poly