Changeset 31f1850 in git
- Timestamp:
- Jan 10, 2012, 4:20:10 PM (11 years ago)
- Branches:
- (u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
- Children:
- 930ea815182bc9bf3182f1c57876006af26295b2
- Parents:
- a74143eec598021f060c389b66230f8f035cc1c5
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/janet.cc
ra74143 r31f1850 44 44 45 45 //#define pow_(x) pTotaldegree((x)) 46 //#define pow_(x) p Deg((x))46 //#define pow_(x) p_Deg((x,currRing)) 47 47 pFDegProc jDeg; 48 48 #define pow_(x) jDeg((x),currRing) … … 957 957 { 958 958 degree_compatible=1; 959 jDeg=p Deg;959 jDeg=p_Deg; 960 960 ListGreatMove=ListGreatMoveDegree; 961 961 } -
Singular/wrapper.cc
ra74143 r31f1850 89 89 { 90 90 //if (pTotaldegree(iT->info->lead) == pTotaldegree(iT->info->history)) 91 if (p Deg(iT->info->lead) == pDeg(iT->info->history))91 if (p_Deg(iT->info->lead,currRing) == p_Deg(iT->info->history,currRing)) 92 92 { 93 93 result->m[ideal_length-ideal_index-1]=pCopy(iT->info->root); -
kernel/fast_maps.cc
ra74143 r31f1850 638 638 poly fq_p=NULL; 639 639 choice=NULL; 640 while ((iter != NULL) && (p Deg(iter->src, r) > ggt_deg))640 while ((iter != NULL) && (p_Deg(iter->src, r) > ggt_deg)) 641 641 { 642 642 // maMonomial_Out(iter, r, NULL); … … 648 648 int tmp_deg; 649 649 assume((q1!=NULL)&&(q2!=NULL)); 650 if ((tmp_deg=p Deg(q,r)) > ggt_deg)650 if ((tmp_deg=p_Deg(q,r)) > ggt_deg) 651 651 { 652 652 choice=iter; … … 657 657 p_LmFree(fq_p, r); 658 658 } 659 ggt_deg = tmp_deg ; /*p Deg(q, r);*/659 ggt_deg = tmp_deg ; /*p_Deg(q, r);*/ 660 660 ggT = q; 661 661 fp_p = q1; -
kernel/ideals.cc
ra74143 r31f1850 1224 1224 for(i=IDELEMS(Q)-1;i>=0;i--) 1225 1225 if(w==NULL) 1226 N=si_max(N,p Deg(Q->m[i]));1226 N=si_max(N,p_Deg(Q->m[i],currRing)); 1227 1227 else 1228 1228 N=si_max(N,pDegW(Q->m[i],w)); … … 1251 1251 p=pJetW(pSub(p,ppMult_mm(Q->m[j],p0)),N,w); 1252 1252 pNormalize(p); 1253 if((w==NULL)&&(p Deg(p0)>n)||(w!=NULL)&&(pDegW(p0,w)>n))1253 if((w==NULL)&&(p_Deg(p0,currRing)>n)||(w!=NULL)&&(pDegW(p0,w)>n)) 1254 1254 p_Delete(&p0,currRing); 1255 1255 else … … 1264 1264 pIter(p); 1265 1265 pNext(p0)=NULL; 1266 if(((w==NULL)&&(p Deg(p0)>n))1266 if(((w==NULL)&&(p_Deg(p0,currRing)>n)) 1267 1267 ||((w!=NULL)&&(pDegW(p0,w)>n))) 1268 1268 p_Delete(&p0,currRing); … … 2133 2133 if (p!=NULL) 2134 2134 { 2135 d = p Deg(p);2135 d = p_Deg(p,currRing); 2136 2136 k= pGetComp(p); 2137 2137 if (slength>0) k--; -
kernel/kutil.cc
ra74143 r31f1850 3238 3238 ) 3239 3239 { 3240 int o=p Deg(p);3241 int oo=p Deg(set[length]);3240 int o=p_Deg(p,currRing); 3241 int oo=p_Deg(set[length],currRing); 3242 3242 3243 3243 if ((oo<o) … … 3249 3249 if (an >= en-1) 3250 3250 { 3251 if ((p Deg(set[an])>=o) && (pLmCmp(set[an],p) == cmp_int))3251 if ((p_Deg(set[an],currRing)>=o) && (pLmCmp(set[an],p) == cmp_int)) 3252 3252 { 3253 3253 return an; … … 3256 3256 } 3257 3257 i=(an+en) / 2; 3258 if ((p Deg(set[i])>=o) && (pLmCmp(set[i],p) == cmp_int)) en=i;3258 if ((p_Deg(set[i],currRing)>=o) && (pLmCmp(set[i],p) == cmp_int)) en=i; 3259 3259 else an=i; 3260 3260 } … … 6342 6342 strat->overflow=FALSE; 6343 6343 ring new_tailRing = rModifyRing(currRing, 6344 // Hmmm .. the condition pFDeg == p Deg6344 // Hmmm .. the condition pFDeg == p_Deg 6345 6345 // might be too strong 6346 6346 #ifdef HAVE_RINGS 6347 (strat->homog && currRing->pFDeg == p Deg && !(rField_is_Ring(currRing))), // TODO Oliver6347 (strat->homog && currRing->pFDeg == p_Deg && !(rField_is_Ring(currRing))), // TODO Oliver 6348 6348 #else 6349 (strat->homog && pFDeg == pDeg), // omit_degree6349 (strat->homog && currRing->pFDeg == p_Deg), // omit_degree 6350 6350 #endif 6351 6351 (strat->ak==0), // omit_comp if the input is an ideal … … 6752 6752 else if (strat->tailRing->pLDeg==maxdegreeWecart) PrintS("maxdegreeWecart"); 6753 6753 else Print("? (%lx)", (long)strat->tailRing->pLDeg); 6754 Print(" syzring:%d, syzComp(strat):%d syzComb:%d limit:%ld\n",rIsSyzIndexRing(currRing),strat->syzComp,rGetCurrSyzLimit(currRing)); 6754 PrintLn(); 6755 PrintS("currRing->pFDeg: "); 6756 if (currRing->pFDeg==p_Totaldegree) PrintS("p_Totaldegree"); 6757 else if (currRing->pFDeg==p_WFirstTotalDegree) PrintS("pWFirstTotalDegree"); 6758 else if (currRing->pFDeg==p_Deg) PrintS("p_Deg"); 6759 else if (currRing->pFDeg==kHomModDeg) PrintS("kHomModDeg"); 6760 else if (currRing->pFDeg==totaldegreeWecart) PrintS("totaldegreeWecart"); 6761 else Print("? (%lx)", (long)currRing->pFDeg); 6762 PrintLn(); 6763 Print(" syzring:%d, syzComp(strat):%d limit:%d\n",rIsSyzIndexRing(currRing),strat->syzComp,rGetCurrSyzLimit(currRing)); 6755 6764 if(TEST_OPT_DEGBOUND) 6756 6765 Print(" degBound: %d\n", Kstd1_deg); -
kernel/linearAlgebra.cc
ra74143 r31f1850 1212 1212 const poly f0, const poly g0, const int d, poly &f, poly &g) 1213 1213 { 1214 int n = (int)p Deg(f0);1215 int m = (int)p Deg(g0);1214 int n = (int)p_Deg(f0,currRing); 1215 int m = (int)p_Deg(g0,currRing); 1216 1216 matrix aMat = mpNew(n + m, n + m); /* matrix A for linear system */ 1217 1217 matrix pMat; matrix lMat; matrix uMat; /* for the decomposition of A */ -
kernel/polys.h
ra74143 r31f1850 247 247 ***************************************************************/ 248 248 inline int pWeight(int i, const ring R = currRing){ return p_Weight(i, R); } 249 inline long pDeg(poly p, const ring R = currRing) { return p_Deg(p, R); }250 249 251 250
Note: See TracChangeset
for help on using the changeset viewer.