-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementation of Cohen-Macaulay test for simplicial complexes #11523
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:3
I'm sorry, I forgot about this ticket. Overall, I think this looks pretty good. Some comments and questions:
and then the computation proceeds. Should we try to catch this and hide it? Can we do that if it says "ignored"?
I don't know if this was ready for review, but I'm attaching a new version of the patch which makes some of these changes: it renames |
comment:4
Replying to @jhpalmieri: Thanks for looking at it again, I hope we can get it into sage soon, as it was pretty much done. The only reason why I stopped working was that I thought I can still speed things up, but I never found the time to do so. I vote for leaving it as it is for now, and if someone (maybe me) needs a faster version, we get back to it.
that was just a left-over, as I first implemented is_cohen_macaulay and then started to play with the parallel version.
If I remember right, this happens not only for 1 cpu, but if a negative answer is returned without waiting the other parallel sessions to be finished. I agree that we should catch that error!
See my comment at the beginning.
I will add it!
Thanks again, I will update your patch as soon as I have done the changes... Best, Christian |
comment:5
I updated a new version. The only changes are that I import |
comment:6
Replying to @stumpc5:
It is rebased against 4.7.2.alpha3. |
comment:7
This is mostly good. The only problems are with the parallel version: if I run with more than one process, I get a message like
If I run it with one process, I get
We should be able to catch the error. Can we also suppress the message "Killing any remaining workers..."? |
comment:8
Replying to @jhpalmieri:
I tried to catch it, but it it already caught somewhere inside the decorator, so I don't know how to suppress the output, do you? Feel free to update the patch if you see a way to do it! |
comment:9
I'm sorry this has languished for so long. Here is a new patch which turns off the message "Killing remaining workers...". I don't know how to get rid of the "No child processes warning", so I mentioned its possible presence in the docstring, so people won't be too concerned if they see it. I also removed the serial version altogether. |
comment:10
Because of the hashing of simplicial complexes, this is in conflict with #12587. I've started a topic on sage-devel on the mutability of SimplicialComplex. |
comment:12
Hey Christian, Just wondering about the status of this patch now that #12587 is (code-wise) finalized. Thanks, Travis |
comment:13
Okay, this is now ready for its final review, I guess... Thanks Travis for bringing it up again! |
Reviewer: Travis Scrimshaw |
Dependencies: #12587 |
This comment has been minimized.
This comment has been minimized.
comment:14
Attachment: trac_11523-cohen_macaulay_complex-cs-jhp-review-ts.patch.gz Hey Christian and John, This did not apply against #12587, so I did the very minor rebase in my review patch (it contains the entire patch; sorry if I overstepped here). I also made some minor docstring changes: some formatting and moved the note about the exception in a Thanks for your work on this, I plan on putting this to good use, Travis For patchbot: Apply only: trac_11523-cohen_macaulay_complex-cs-jhp-review-ts.patch |
comment:15
Replying to @tscrim:
great! The patch looks good to me, so I am marking it positive... Best, Christian |
comment:16
Is the work issue still relevant? |
Changed work issues from further improvement of _enlarge_subcomplex to none |
comment:17
Replying to @jhpalmieri:
It seems like it's not. |
Merged: sage-5.6.beta2 |
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
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
The text was updated successfully, but these errors were encountered: