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

Function p_FirstVblock

libpolys/polys/shiftop.cc:456–474  ·  view source on GitHub ↗

returns the number of maximal block */ appearing among the monomials of p */ the 0th block is the 1st one */

Source from the content-addressed store, hash-verified

454/* appearing among the monomials of p */
455/* the 0th block is the 1st one */
456int p_FirstVblock(poly p, const ring r)
457{
458 if (p == NULL) {
459 return 0;
460 }
461
462 poly q = p;
463 int ans = p_mFirstVblock(q, r);
464 while (q!=NULL)
465 {
466 int ansnew = p_mFirstVblock(q, r);
467 if (ansnew > 0) { // don't count constants
468 ans = si_min(ans,ansnew);
469 }
470 pIter(q);
471 }
472 /* do not need to delete q */
473 return(ans);
474}
475
476/* for a monomial p, returns the number of the first block */
477/* where a nonzero exponent is sitting */

Callers 6

shift_pp_Mult_mmFunction · 0.85
shift_p_Mult_mmFunction · 0.85
shift_pp_mm_MultFunction · 0.85
shift_p_mm_MultFunction · 0.85
k_SplitFrameFunction · 0.85
ksCreateShortSpolyFunction · 0.85

Calls 2

p_mFirstVblockFunction · 0.85
si_minFunction · 0.85

Tested by

no test coverage detected