-
-
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
Implement a proper equality check for polyhedron representation objects #30954
Comments
Commit: |
New commits:
|
Branch: public/30954 |
Branch pushed to git repo; I updated commit sha1. New commits:
|
This comment has been minimized.
This comment has been minimized.
Reviewer: Jean-Philippe Labbé |
comment:4
Minor things: - cross_slack_matrix = self_matrix*hom_Vrep
+ cross_slack_matrix = self_matrix * hom_Vrep - if any(self.A()*line.vector() for line in other.lines()):
+ if any(self.A() * line.vector() for line in other.lines()): In the TEST block, I would remove the Why is there a lonely + False
+
+ ::
+
+ sage: P = Polyhedron(vertices=[[0,0,0],[0,1,0]], lines=[[1,0,0]]) |
comment:5
Replying to @jplab:
People use it to group examples, when they are too lazy to write down a nice sentence for each example. |
comment:6
It's just a new example, I redefine |
comment:7
You forgot |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
Thanks! Looks good and will be useful! |
Changed branch from public/30954 to |
This isn't acceptable. Those inequalites are the same, only the defining vector differs by a positive scalar.
We also define a method
is_facet_defining_inequality
that checks whetherself
could replace an inequality of the polyhedronother
. This is useful, whenother
is not full-dimensional and inequalities aren't unique (only afteraffine_hull_projection
).CC: @jplab @LaisRast
Component: geometry
Keywords: scalars, polyhedra
Author: Jonathan Kliem
Branch/Commit:
9ee3335
Reviewer: Jean-Philippe Labbé
Issue created by migration from https://trac.sagemath.org/ticket/30954
The text was updated successfully, but these errors were encountered: