-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Small improvements for ppl backend #32157
Comments
comment:2
This is a preliminary for two things:
|
comment:3
Why is the |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:5
should be ...ppl |
comment:6
We forgot to do this in the normaliz and polymake backends, but now that mutability is coming into play I think it's crucial to clarify object ownership: Does the normaliz cone / polymake polytope / ppl polyhedron belong to the created Polyhedron object? |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
Replying to @mkoeppe:
Yes, I think so. I don't know what exact consequences this has. Do we make a copy, when initializing with a cone etc? As long as everything is immutable, it's fine to have multiple polyhedra with the same cone. However, once things are mutable, that should be taken care of. |
comment:9
Replying to @kliem:
If it is clarified that ownership transfers to the new object, then no copy needs to be made. |
comment:10
Yes this makes sense. When giving a cone to a normaliz polyhedron, I would usually assume that it may be modified. If the polyhedron is mutable, this mean actual modification and not just computing stuff. |
comment:11
Right, and on the other hand it would be an error if the user continues to modify the object that now belongs to the polyhedron. |
Reviewer: Matthias Koeppe |
Changed branch from u/gh-kliem/small_improvements_ppl to |
We remove some code duplications in the ppl backend. Along the way we also allow initialization from
ppl_polyhedron
. This saves almost all the time, when extending base ring toQQ
:Before:
After:
CC: @jplab @mkoeppe @yuan-zhou
Component: geometry
Author: Jonathan Kliem
Branch/Commit:
c82c144
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/32157
The text was updated successfully, but these errors were encountered: