up previous next
WeightsMatrix

matrix of generalized weights for indeterminates

Syntax
WeightsMatrix(R:RING):MAT

Description
This function returns the weights matrix for the current ring.

Example
/**/  OrdM := CompleteToOrd(RowMat([2,3]));
/**/  P := NewPolyRing(QQ, ["x","y"], OrdM, 1);
/**/  Use P;
/**/  WeightsMatrix(P);
matrix([
  [2, 3]
])

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

See Also