up previous next
GradingMat    --    matrix of generalized weights for indeterminates


Syntax
GradingMat(R: RING): MAT

Description
This function returns the grading matrix (or weights matrix) for the polynomials ring R. To define a ring with (multi)weights use NewPolyRing .

Example
/**/  OrdM := MakeTermOrdMat(RowMat([2,3]));  OrdM;
matrix(ZZ,
 [[2, 3],
  [0, -1]])
/**/  P := NewPolyRing(QQ, "x,y", OrdM, 1);  -- GradingDim = 1
/**/  GradingMat(P);
matrix(ZZ,
 [[2, 3]])

/**/  use P;
/**/  deg(x*y);
2
/**/  wdeg(x*y);
[5]

See Also