Changeset dcddf66 in git for kernel/GBEngine/kutil.cc
- Timestamp:
- Jun 7, 2017, 3:37:38 PM (7 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
- Children:
- 5361740013273f5e2466bb8da3694c915d880fa8
- Parents:
- ce1b53088c76b35ea7757238cd2eb7a737b01645
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/GBEngine/kutil.cc
rce1b53 rdcddf66 148 148 static inline int pDivCompRing(poly p, poly q) 149 149 { 150 if (pGetComp(p) == pGetComp(q)) 150 if ((currRing->pCompIndex < 0) 151 || (__p_GetComp(p,currRing) == __p_GetComp(q,currRing))) 151 152 { 152 153 BOOLEAN a=FALSE, b=FALSE; … … 186 187 static inline int pDivComp(poly p, poly q) 187 188 { 188 if (pGetComp(p) == pGetComp(q)) 189 if ((currRing->pCompIndex < 0) 190 || (__p_GetComp(p,currRing) == __p_GetComp(q,currRing))) 189 191 { 190 192 #ifdef HAVE_RATGRING … … 331 333 void cancelunit (LObject* L,BOOLEAN inNF) 332 334 { 333 int i;334 poly h;335 335 number lc; 336 336 … … 340 340 ring r = L->tailRing; 341 341 poly p = L->GetLmTailRing(); 342 if(p_GetComp(p, r) != 0 && !p_OneComp(p, r)) return; 342 343 343 344 if (rField_is_Ring(r) /*&& (rHasLocalOrMixedOrdering(r))*/) … … 354 355 #endif 355 356 356 if(p_GetComp(p, r) != 0 && !p_OneComp(p, r)) return;357 357 358 358 // for(i=r->N;i>0;i--) … … 360 360 // if ((p_GetExp(p,i,r)>0) && (rIsPolyVar(i, r)==TRUE)) return; 361 361 // } 362 h = pNext(p); 362 poly h = pNext(p); 363 int i; 363 364 364 365 if(rField_is_Ring(currRing)) … … 393 394 if (L->p != NULL && pNext(L->p) != NULL) 394 395 pNext(L->p) = NULL; 395 396 396 return; 397 397 } … … 4694 4694 if (rRing_has_Comp(currRing) && rRing_has_Comp(strat->tailRing)) 4695 4695 { 4696 p_SetComp(tmp, p_GetComp(p, strat->tailRing), currRing);4696 p_SetComp(tmp, __p_GetComp(p, strat->tailRing), currRing); 4697 4697 } 4698 4698 p_Setm(tmp, currRing); … … 4776 4776 if (rRing_has_Comp(currRing) && rRing_has_Comp(strat->tailRing)) 4777 4777 { 4778 p_SetComp(tmp, p_GetComp(p, strat->tailRing), currRing);4778 p_SetComp(tmp, __p_GetComp(p, strat->tailRing), currRing); 4779 4779 } 4780 4780 p_Setm(tmp, currRing); … … 7156 7156 pWrite(sig); 7157 7157 #endif 7158 int comp = p_GetComp(sig, currRing);7158 int comp = __p_GetComp(sig, currRing); 7159 7159 int min, max; 7160 7160 if (comp<=1) … … 7601 7601 if (Ln.p!=NULL) 7602 7602 { 7603 if ( p_GetComp(Ln.p,currRing)> strat->syzComp) break;7603 if (__p_GetComp(Ln.p,currRing)> strat->syzComp) break; 7604 7604 } 7605 7605 else 7606 7606 { 7607 if ( p_GetComp(Ln.t_p,strat->tailRing)> strat->syzComp) break;7607 if (__p_GetComp(Ln.t_p,strat->tailRing)> strat->syzComp) break; 7608 7608 } 7609 7609 } … … 7709 7709 if (Ln.p!=NULL) 7710 7710 { 7711 if ( p_GetComp(Ln.p,currRing)> strat->syzComp) break;7711 if (__p_GetComp(Ln.p,currRing)> strat->syzComp) break; 7712 7712 } 7713 7713 else 7714 7714 { 7715 if ( p_GetComp(Ln.t_p,strat->tailRing)> strat->syzComp) break;7715 if (__p_GetComp(Ln.t_p,strat->tailRing)> strat->syzComp) break; 7716 7716 } 7717 7717 } … … 8457 8457 p_ExpVectorCopy(q,strat->S[i],currRing); 8458 8458 q = p_Neg (q, currRing); 8459 p_SetCompP (q, p_GetComp(strat->sig[k], currRing), currRing);8459 p_SetCompP (q, __p_GetComp(strat->sig[k], currRing), currRing); 8460 8460 Q.sig = p_Add_q (Q.sig, q, currRing); 8461 8461 Q.sevSig = p_GetShortExpVector(Q.sig,currRing); … … 8501 8501 p_ExpVectorCopy(q,strat->L[strat->Ll].p,currRing); 8502 8502 q = p_Neg (q, currRing); 8503 p_SetCompP (q, p_GetComp(strat->sig[k], currRing), currRing);8503 p_SetCompP (q, __p_GetComp(strat->sig[k], currRing), currRing); 8504 8504 Q.sig = p_Add_q (Q.sig, q, currRing); 8505 8505 Q.sevSig = p_GetShortExpVector(Q.sig,currRing);
Note: See TracChangeset
for help on using the changeset viewer.