-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
Poset of manifold subsets #31680
Comments
comment:1
Possibly related: #30263. |
comment:2
Yes, hopefully this new feature can be used as a debugging tool |
comment:4
Here's a first step: Building a digraph from the defined subsets. (Plotting needs New commits:
|
Commit: |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Dependencies: #31681 |
Author: Matthias Koeppe |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Replying to @mkoeppe:
I'm happy to see this happening! At the beginning of the SageManifolds project, it was pretty clear that graphs would be the proper way to deal with subsets, but I was not familiar with this part of Sage and wanted to move fast...
This would be nice, indeed. Playing with the doctest examples,
yields nice figures, with the latex names. |
comment:12
This digraph approach might also be useful to improve restrictions of tensor fields and make them even faster, no? |
comment:13
Replying to @mjungmath:
Yes, I think there are many more digraph / poset structures in sage.manifolds that could be exposed by similar methods in follow-up tickets. On this ticket I am not making an attempt to actually change any of the internal representations of these structures. Just providing some tools that give a high-level view on the existing structures. |
comment:14
Replying to @mkoeppe:
+1 Besides, I really like the way you write code. It's clear and neat! |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:29
Ready for review. |
comment:32
Thanks for the update. Looks good. I've got two remarks:
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:35
Replying to @egourgoulhon:
Good idea, done.
Thanks, done - I always forget to do this. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:37
Did one final improvement for more informative printing |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:39
Thanks for the changes. One minor remark: shouldn't
be replaced by
in the output of the doctest
in Besides, do you think it is worth to add
immediately after the doctest
to generate plots of posets and digraphs in the reference manual? In any case, I would suggest that the doctest markers - sage: P.plot(element_labels={element: element._name for element in P}) # not tested
+ sage: P.plot(element_labels={element: element._name for element in P})
+ Graphics object consisting of 10 graphics primitives |
comment:41
How's this look? |
comment:42
Replying to @mkoeppe:
That's perfect, thanks! |
comment:43
Thanks for the review! |
Changed branch from u/mkoeppe/poset_of_manifold_subsets to |
The declared subsets or supersets of a
ManifoldSubset
form finite posets. We add methods to expose them as instances ofFinitePoset
.Depends on #31681
Depends on #31717
CC: @mjungmath @egourgoulhon @tscrim
Component: manifolds
Author: Matthias Koeppe
Branch/Commit:
84896c4
Reviewer: Eric Gourgoulhon
Issue created by migration from https://trac.sagemath.org/ticket/31680
The text was updated successfully, but these errors were encountered: