up previous next
GradingDim

Number of components in weighted degree

Syntax
GradingDim(P): INT

Description
This function returns the grading dimension of a polynomial ring, i.e. how many of the rows of OrderMatrix are to be taken as specifying the grading.

Example
/**/  OrdM := MakeTermOrd(RowMat([2,3]));
/**/  P := NewPolyRing(QQ, "x,y", OrdM, 1);
/**/  GradingDim(P);
1

See Also