B = subDGAlgebra(A, keepIdx)The subset keepIdx must be d-closed: if the differential of a kept generator uses a dropped generator, subDGAlgebra raises an error rather than silently returning a non-DG object. This protects downstream code from accidentally producing inconsistent structures.
|
|
|
|
Dropping a generator whose image is referenced in a kept generator's differential is caught:
|
|
|
|
Duplicate or out-of-range entries in keepIdx raise an error. keepIdx is internally sorted, so the generator order of the output depends only on which indices appear.
The object subDGAlgebra is a method function with options.
The source of this document is in /build/reproducible-path/macaulay2-1.26.05+ds/M2/Macaulay2/packages/DGAlgebras/doc.m2:6585:0.