previous  next
WeightsMatrix
Syntax
WeightsMatrix():MAT
Summary
matrix of generalized weights for indeterminates
Description
This function returns the weights matrix for the current ring.

Example

Use R ::= Q[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: