up previous next
WeightsMatrix

matrix of generalized weights for indeterminates
Syntax

WeightsMatrix():MAT


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

Example
  Use R ::= QQ[x,y], Weights(Mat([[1,2],[3,4],[5,6]]));
  WeightsMatrix();
Mat([
  [1, 2],
  [3, 4],
  [5, 6]
])
-------------------------------
  MDeg(y);
[2, 4, 6]
-------------------------------
  WeightsList();  -- the first row of the weights matrix
[1, 2]
-------------------------------


See Also