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

Function MwalkWeightDegree

Singular/walk.cc:669–685  ·  view source on GitHub ↗

* compute a weight degree of a polynomial p w.r.t. a weight_vector * ********************************************************************/

Source from the content-addressed store, hash-verified

667 * compute a weight degree of a polynomial p w.r.t. a weight_vector *
668 ********************************************************************/
669static inline int MwalkWeightDegree(poly p, intvec* weight_vector)
670{
671 assume(weight_vector->length() >= currRing->N);
672 int max = 0, maxtemp;
673
674 while(p != NULL)
675 {
676 maxtemp = MLmWeightedDegree(p, weight_vector);
677 pIter(p);
678
679 if (maxtemp > max)
680 {
681 max = maxtemp;
682 }
683 }
684 return max;
685}
686
687
688/********************************************************************

Callers 4

MPertVectorsFunction · 0.85
MPertVectorslpFunction · 0.85
MfpertvectorFunction · 0.85
RepresentationMatrix_DpFunction · 0.85

Calls 2

MLmWeightedDegreeFunction · 0.85
lengthMethod · 0.45

Tested by

no test coverage detected