CoCoA:WeightsMatrix
From ApCoCoAWiki
WeightsMatrix
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] -------------------------------
Syntax
WeightsMatrix():MAT
<type>ring</type>