up previous next
IsPositiveGrading

check if a matrix defines a positive grading

Syntax
IsPositiveGrading(M:MAT):BOOL

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
-------------------------------


See Also