r = rank MFor a free DGModule, rank and numgens coincide. For a DGSubmodule, rank reports the rank of the included free module (which is numgens S when the inclusion is injective on natural generators — always the case for submodules built by dgSubmodule).
|
|
|
|
|
|
|
|
After pruning a DGSubmodule with redundant inclusions, rank equals numgens on the pruned object.
|
|
|
rank is not defined on DGQuotientModule: the rank of a cokernel module triggers codim computations that fail over non-affine graded ambients. Use numgens for the generator count.
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/DGAlgebras/doc.m2:3499:0.