* compute a weight degree of a polynomial p w.r.t. a weight_vector * ********************************************************************/
| 667 | * compute a weight degree of a polynomial p w.r.t. a weight_vector * |
| 668 | ********************************************************************/ |
| 669 | static 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 | /******************************************************************** |
no test coverage detected