CoCoA:IsPositiveGrading

From ApCoCoAWiki

IsPositiveGrading

check if a matrix defines a positive grading

Description

This function determines whether a matrix defines a positive grading,

i.e. foreach column the first nonnegative entry is positive.

Example

  IsPositiveGrading(LexMat(5));
TRUE
-------------------------------
  IsPositiveGrading(Mat([[0,2,3], [1, -1, 0]]));
TRUE
-------------------------------
  IsPositiveGrading(Mat([[1,1], [0,-1], [-1, 0]]));
TRUE
-------------------------------

Syntax

IsPositiveGrading(M:MAT):BOOL

HilbertSeriesMultiDeg

PositiveGrading4

   <type>matrix</type>
   <type>boolean</type>