Skip to content

Implementation of Cohen-Macaulay test for simplicial complexes #11523

@stumpc5

Description

@stumpc5

Simplicial complexes were lacking a method to test Cohen-Macaulayness.

In order to implement this method, some other methods are improved, namely a hash function is implemented, and _enlarge_subcomplex has become faster.

For convinience, I also added a face_iterator.

Remark: the new line

int_facets = set( a.set().intersection(f_set) for a in new_facets ) 

in _enalarge_subcomplex improved speed for computing the homology by 65% (in the example I looked at -- needs to be verified). This method still has the potential to be speeded a lot, and it is responsible for a lot cpu time when computing the homology.

I also added a second version using parallel tests on multiple cpus.


Apply only: attachment: trac_11523-cohen_macaulay_complex-cs-jhp-review-ts.patch

Depends on #12587

CC: @jhpalmieri

Component: commutative algebra

Keywords: Cohen-Macaulay, homology, simplicial complexes

Author: Christian Stump

Reviewer: Travis Scrimshaw

Merged: sage-5.6.beta2

Issue created by migration from https://trac.sagemath.org/ticket/11523

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions