NewPolyRingWeights -- create a new PolyRing with weights |
Syntax |
NewPolyRing(CoeffRing: RING, IndetNames: STRING/LIST, W: MAT): RING |
Description |
Example |
/**/ W := matrix([[2,3,1]]); /**/ P := NewPolyRingWeights(QQ, "a,b,c", W); /**/ [wdeg(X) | X in indets(P)]; [[2], [3], [1]] /**/ -- same as /**/ P2 := NewPolyRing(QQ, "a,b,c", MakeTermOrdMat(W), 1); /**/ [wdeg(X) | X in indets(P2)]; |
See Also |