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

Function wDeg

Singular/dyn_modules/gfanlib/initial.cc:6–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "gfanlib/gfanlib.h"
5
6long wDeg(const poly p, const ring r, const gfan::ZVector &w)
7{
8 long d=0;
9 for (unsigned i=0; i<w.size(); i++)
10 {
11 if (!w[i].fitsInInt())
12 {
13 WerrorS("wDeg: overflow in weight vector");
14 throw 0; // weightOverflow;
15 }
16 d += p_GetExp(p,i+1,r)*w[i].toInt();
17 }
18 return d;
19}
20
21gfan::ZVector WDeg(const poly p, const ring r, const gfan::ZVector &w, const gfan::ZMatrix &W)
22{

Callers 3

WDegFunction · 0.85
initialFunction · 0.85
groebnerConeMethod · 0.85

Calls 5

WerrorSFunction · 0.85
p_GetExpFunction · 0.85
fitsInIntMethod · 0.80
toIntMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected