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

Function p_mFirstVblock

libpolys/polys/shiftop.cc:478–490  ·  view source on GitHub ↗

for a monomial p, returns the number of the first block */ where a nonzero exponent is sitting */

Source from the content-addressed store, hash-verified

476/* for a monomial p, returns the number of the first block */
477/* where a nonzero exponent is sitting */
478int p_mFirstVblock(poly p, const ring ri)
479{
480 if (p == NULL || p_LmIsConstantComp(p,ri))
481 {
482 return(0);
483 }
484
485 int *e=(int *)omAlloc((ri->N+1)*sizeof(int));
486 p_GetExpV(p,e,ri);
487 int b = p_mFirstVblock(p, e, ri);
488 omFreeSize((ADDRESS) e, (ri->N+1)*sizeof(int));
489 return b;
490}
491
492/* for a monomial p with exponent vector expV, returns the number of the first block */
493/* where a nonzero exponent is sitting */

Callers 15

shift_pp_Mult_mmFunction · 0.85
shift_p_Mult_mmFunction · 0.85
shift_pp_mm_MultFunction · 0.85
shift_p_mm_MultFunction · 0.85
p_mLPunshiftFunction · 0.85
p_mLPshiftFunction · 0.85
p_FirstVblockFunction · 0.85
kBucketPolyRedFunction · 0.85
kbuckets.ccFile · 0.85
SetMethod · 0.85
enterOneStrongPolyShiftFunction · 0.85
enterOnePairRingShiftFunction · 0.85

Calls 2

p_LmIsConstantCompFunction · 0.85
p_GetExpVFunction · 0.85

Tested by

no test coverage detected