ExpVector(pr) = ExpVector(p1) - ExpVector(p2)
| 1486 | |
| 1487 | // ExpVector(pr) = ExpVector(p1) - ExpVector(p2) |
| 1488 | static inline void p_ExpVectorDiff(poly pr, poly p1, poly p2, const ring r) |
| 1489 | { |
| 1490 | p_LmCheckPolyRing1(p1, r); |
| 1491 | p_LmCheckPolyRing1(p2, r); |
| 1492 | p_LmCheckPolyRing1(pr, r); |
| 1493 | #if PDEBUG >= 2 |
| 1494 | for (int i=1; i<=r->N; i++) |
| 1495 | pAssume1(p_GetExp(p1, i, r) >= p_GetExp(p2, i, r)); |
| 1496 | pAssume1(!rRing_has_Comp(r) || p_GetComp(p1, r) == p_GetComp(p2, r)); |
| 1497 | #endif |
| 1498 | |
| 1499 | p_MemDiff_LengthGeneral(pr->exp, p1->exp, p2->exp, r->ExpL_Size); |
| 1500 | p_MemSub_NegWeightAdjust(pr, r); |
| 1501 | } |
| 1502 | |
| 1503 | static inline BOOLEAN p_ExpVectorEqual(poly p1, poly p2, const ring r) |
| 1504 | { |
no test coverage detected