MCPcopy Create free account
hub / github.com/Singular/Singular / p_ExpVectorDiff

Function p_ExpVectorDiff

libpolys/polys/monomials/p_polys.h:1488–1501  ·  view source on GitHub ↗

ExpVector(pr) = ExpVector(p1) - ExpVector(p2)

Source from the content-addressed store, hash-verified

1486
1487// ExpVector(pr) = ExpVector(p1) - ExpVector(p2)
1488static 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
1503static inline BOOLEAN p_ExpVectorEqual(poly p1, poly p2, const ring r)
1504{

Callers 15

sm_IsNegQuotFunction · 0.85
sm_ExpMultDivFunction · 0.85
heuristicGcdCancellationFunction · 0.85
gnc_ReduceSpolyOldFunction · 0.85
gnc_ReduceSpolyNewFunction · 0.85
gnc_CreateSpolyOldFunction · 0.85
gnc_CreateSpolyNewFunction · 0.85
gnc_ReduceSpolyTailFunction · 0.85
gnc_kBucketPolyRedOldFunction · 0.85
gnc_kBucketPolyRedNewFunction · 0.85
gnc_kBucketPolyRed_ZOldFunction · 0.85
gnc_kBucketPolyRed_ZNewFunction · 0.85

Calls 2

p_GetExpFunction · 0.85
p_MemSub_NegWeightAdjustFunction · 0.85

Tested by

no test coverage detected