-
-
Notifications
You must be signed in to change notification settings - Fork 490
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
{Polyhedron, ConvexRationalPolyhedralCone}.{interior, relative_interior} #31916
Comments
Author: Matthias Koeppe |
Commit: |
This comment has been minimized.
This comment has been minimized.
New commits:
|
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:
|
Reviewer: Jonathan Kliem |
comment:9
There are various small things: The interior of a non-full-dimensional cone should be a cone, not a polyhedron. Why do you implement Why is Comparison will raise |
comment:10
#31919 solves the problem with |
comment:12
Replying to @kliem:
Can't do - a
Done
For this ticket, it's just the accessor to the original polytope, not a more general API. See #31919 (ABC for convex sets), where I am adding such methods.
Done |
comment:14
LGTM. |
comment:15
Replying to @mkoeppe:
Right.
As noted above, I later discovered this on #31919 and it's fine to add it later on.
|
comment:16
Thanks! But I think I need to revise |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:19
I was locking for a boundary case, but yes, if a polyhedron is it's affine hull, then it either empty or the universe it it's affine hull. |
Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:
|
comment:21
Sorry, here's the same fix for cones |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:23
Is there a reason for the emptylines:
I'm not sure, if it also applies to the import. Really tiny: Does a docstring ending with an example contain an empty line in the end? (Doesn't need to be fixed, I just noticed.) Maybe for another ticket: Replace the Otherwise it's a positive review. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:25
LGTM. |
comment:26
Thanks! |
Changed branch from u/mkoeppe/polyhedron_relative_interior to |
We introduce new methods
relative_interior
andinterior
, which (in nontrivial cases) return a simple object with a__contains__
method.Then one can write
x in P.relative_interior()
instead ofP.relative_interior_contains(x)
.This will also simplify #31660.
CC: @kliem @yuan-zhou @jplab @tscrim @novoselt @orlitzky
Component: geometry
Author: Matthias Koeppe
Branch/Commit:
fa4c2d2
Reviewer: Jonathan Kliem
Issue created by migration from https://trac.sagemath.org/ticket/31916
The text was updated successfully, but these errors were encountered: