-
-
Notifications
You must be signed in to change notification settings - Fork 517
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
Direct sum of polyhedron is broken, so is minkowski difference and face truncation #28506
Comments
comment:1
I'll fix it. Should be fast. As far as I know, it's difficult to determine, whether this operation can be done with ring
What do you think is better? |
comment:2
Same for
|
comment:3
I did both approaches. The approach that always takes the fraction is pushed into I guess there are pros and cons of both methods. I think most important cons are:
New commits:
|
Author: Jonathan Kliem |
This comment has been minimized.
This comment has been minimized.
Branch: public/28506 |
Commit: |
comment:4
Btw, the constructor sets up all H-Polyhedra with base ring as field unless one specifies a specific base ring. Actually, I think this is the better approach, as construction should be done with a parent, for which they are well-defined, e.g.:
|
comment:5
One comment: The tests should actually return something, so I would remove I am still a bit puzzled as to why it did not work for direct sum. What was going on there? |
comment:6
Replying to @jplab:
Ok. Will do it.
Does this answer your question? As mentioned, direct sum (as well as intersection, minkowski difference and face truncation) are only defined for polytopes/polyhedra over a field. In the same way, that |
comment:7
As mentioned. I think this approach is actually more suitable and at some point, we should change New commits:
|
Changed branch from public/28506 to public/28506-bis |
comment:8
Replying to @kliem:
Yes, this examples clarifies it. It should probably go right among the first examples to illustrate the construction. I was extremely confused, but now it makes sense. The problem is when we translate one of them to have center be the origin...
Yes, sounds reasonable. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:10
Replying to @jplab:
I could of course do it. But doesn't the existing example already illustrate this?
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:12
Replying to @kliem:
True. |
Reviewer: Jean-Philippe Labbé |
comment:13
The "some tests::" might be superfluous. I would remove it. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
Some tests are failing in the thematic tutorial. See patchbots. |
Changed branch from public/28506-bis to public/28506-reb2 |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:18
LGTM |
Changed branch from public/28506-reb2 to |
The following returns a
TypeError
:H-Polyhedra might have non-integral vertices and it is hard to tell from the H-Representation, whether this this is the case.
We fix
direct_sum
,minkowski_difference
andface_truncation
to try the quotient ring, if the given base ring does not work.CC: @LaisRast @kliem
Component: geometry
Keywords: polytopes
Author: Jonathan Kliem
Branch/Commit:
6756d8a
Reviewer: Jean-Philippe Labbé
Issue created by migration from https://trac.sagemath.org/ticket/28506
The text was updated successfully, but these errors were encountered: