assignDegrees(M) or assignDegrees(M,targetDegs,sourceDegs)
A matrix M with homogeneous entries in an NCRing can determine a homomorphism of graded free modules if the entries satisfy certain consistency conditions. Finding a set of degrees for source and target basis vectors such that M determines a graded module map is an integer programming problem. This method does not solve the problem in general.
With only one input, this method checks to see if the entries in each column all have the same homogeneous degree. If so, the method assigns source and target degrees in the natural way and the isHomogeneous flag is set for M. If not, all degrees are set to 0 and the flag is not set. This method is called any time a matrix is created.
With three inputs, the user may specify the desired degree shifts on inputs and outputs such that the associated module map is graded.







The object assignDegrees is a method function.