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

Function p_ExpVectorSub

libpolys/polys/monomials/p_polys.h:1454–1467  ·  view source on GitHub ↗

ExpVector(p1) -= ExpVector(p2)

Source from the content-addressed store, hash-verified

1452}
1453// ExpVector(p1) -= ExpVector(p2)
1454static inline void p_ExpVectorSub(poly p1, poly p2, const ring r)
1455{
1456 p_LmCheckPolyRing1(p1, r);
1457 p_LmCheckPolyRing1(p2, r);
1458#if PDEBUG >= 1
1459 for (int i=1; i<=r->N; i++)
1460 pAssume1(p_GetExp(p1, i, r) >= p_GetExp(p2, i, r));
1461 pAssume1(p_GetComp(p1, r) == 0 || p_GetComp(p2, r) == 0 ||
1462 p_GetComp(p1, r) == p_GetComp(p2, r));
1463#endif
1464
1465 p_MemSub_LengthGeneral(p1->exp, p2->exp, r->ExpL_Size);
1466 p_MemSub_NegWeightAdjust(p1, r);
1467}
1468
1469// ExpVector(p1) += ExpVector(p2) - ExpVector(p3)
1470static inline void p_ExpVectorAddSub(poly p1, poly p2, poly p3, const ring r)

Callers 13

kBucketPolyRedFunction · 0.85
kbuckets.ccFile · 0.85
p_Div_mmFunction · 0.85
p_DivideMFunction · 0.85
elimOperationBucketFunction · 0.85
kstd2.ccFile · 0.85
ksReducePolyZFunction · 0.85
ksReducePolyFunction · 0.85
ksReducePolyGCDFunction · 0.85
ksReducePolyLCFunction · 0.85
ksReducePolyBoundFunction · 0.85
ksReducePolySigFunction · 0.85

Calls 2

p_GetExpFunction · 0.85
p_MemSub_NegWeightAdjustFunction · 0.85

Tested by

no test coverage detected