Changeset 3a9e92a in git
- Timestamp:
- Dec 18, 2013, 4:50:21 PM (9 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 7e2f2d4d596a804ea1786814516bb72ef3fa5d24
- Parents:
- 6e3023af87cd7303404f428f8b9a5e633065747b
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/kspoly.cc
r6e3023a r3a9e92a 223 223 if (!PW->is_sigsafe) 224 224 { 225 poly ftmp;226 ring rtmp;227 PR->SetLmCurrRing();228 poly f1 = pCopy(PR->GetLmCurrRing());229 //PR->GetLm(ftmp,rtmp);230 //poly f1 = k_LmInit_tailRing_2_currRing(ftmp,rtmp);231 poly f2 = PW->GetLmCurrRing();232 225 poly sigMult = pCopy(PW->sig); // copy signature of reducer 233 p_ExpVectorSub(f1, f2, currRing); // Calculate the Monomial we must multiply to p2234 226 //#if 1 235 227 #ifdef DEBUGF5 … … 240 232 printf("--------------\n"); 241 233 #endif 242 sigMult = p_Mult_q(f1,sigMult,currRing);234 p_ExpVectorAddSub(sigMult,PR->GetLmCurrRing(),PW->GetLmCurrRing(),currRing); 243 235 //#if 1 244 236 #ifdef DEBUGF5 -
kernel/polys.h
r6e3023a r3a9e92a 80 80 ***************************************************************/ 81 81 82 #define pExpVectorCopy(d_p, s_p) p_ExpVectorCopy(d_p, s_p, currRing)83 #define pExpVectorAdd(p1, p2) p_ExpVectorAdd(p1, p2, currRing)84 #define pExpVectorSub(p1, p2) p_ExpVectorSub(p1, p2, currRing)85 #define pExpVectorAddSub(p1, p2, p3) p_ExpVectorAddSub(p1, p2, p3, currRing)86 #define pExpVectorSum(pr, p1, p2) p_ExpVectorSum(pr, p1, p2, currRing)87 #define pExpVectorDiff(pr, p1, p2) p_ExpVectorDiff(pr, p1, p2, currRing)82 #define pExpVectorCopy(d_p, s_p) p_ExpVectorCopy(d_p, s_p, currRing) 83 #define pExpVectorAdd(p1, p2) p_ExpVectorAdd(p1, p2, currRing) 84 #define pExpVectorSub(p1, p2) p_ExpVectorSub(p1, p2, currRing) 85 #define pExpVectorAddSub(p1, p2, p3) p_ExpVectorAddSub(p1, p2, p3, currRing) 86 #define pExpVectorSum(pr, p1, p2) p_ExpVectorSum(pr, p1, p2, currRing) 87 #define pExpVectorDiff(pr, p1, p2) p_ExpVectorDiff(pr, p1, p2, currRing) 88 88 89 89 // Gets a copy of (resp. set) the exponent vector, where e is assumed -
libpolys/polys/monomials/p_polys.h
r6e3023a r3a9e92a 1376 1376 } 1377 1377 // ExpVector(p1) += ExpVector(p2) - ExpVector(p3) 1378 //static inline void p_ExpVectorAddSub(poly p1, poly p2, poly p3, const ring r)1379 //{1380 //p_LmCheckPolyRing1(p1, r);1381 //p_LmCheckPolyRing1(p2, r);1382 //p_LmCheckPolyRing1(p3, r);1383 //#if PDEBUG >= 11384 //for (int i=1; i<=r->N; i++)1385 //pAssume1(p_GetExp(p1, i, r) + p_GetExp(p2, i, r) >= p_GetExp(p3, i, r));1386 //pAssume1(p_GetComp(p1, r) == 0 ||1387 //(p_GetComp(p2, r) - p_GetComp(p3, r) == 0) ||1388 //(p_GetComp(p1, r) == p_GetComp(p2, r) - p_GetComp(p3, r)));1389 //#endif1390 // 1391 //p_MemAddSub_LengthGeneral(p1->exp, p2->exp, p3->exp, r->ExpL_Size);1392 //// no need to adjust in case of NegWeights1393 //}1378 static inline void p_ExpVectorAddSub(poly p1, poly p2, poly p3, const ring r) 1379 { 1380 p_LmCheckPolyRing1(p1, r); 1381 p_LmCheckPolyRing1(p2, r); 1382 p_LmCheckPolyRing1(p3, r); 1383 #if PDEBUG >= 1 1384 for (int i=1; i<=r->N; i++) 1385 pAssume1(p_GetExp(p1, i, r) + p_GetExp(p2, i, r) >= p_GetExp(p3, i, r)); 1386 pAssume1(p_GetComp(p1, r) == 0 || 1387 (p_GetComp(p2, r) - p_GetComp(p3, r) == 0) || 1388 (p_GetComp(p1, r) == p_GetComp(p2, r) - p_GetComp(p3, r))); 1389 #endif 1390 1391 p_MemAddSub_LengthGeneral(p1->exp, p2->exp, p3->exp, r->ExpL_Size); 1392 // no need to adjust in case of NegWeights 1393 } 1394 1394 1395 1395 // ExpVector(pr) = ExpVector(p1) - ExpVector(p2)
Note: See TracChangeset
for help on using the changeset viewer.