-
-
Notifications
You must be signed in to change notification settings - Fork 553
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
Add "minimal=True" option to affine_hull_projection #30946
Comments
This comment has been minimized.
This comment has been minimized.
comment:3
Looks like you just outsourced the labor. But maybe in larger examples this pays of. |
comment:4
Apparently it is at least better asymptotically.
|
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:6
... forgot to add an example. ;) |
comment:7
Replying to @kliem:
Yes, I am outsourcing of course. The point is of course to apply the matrix to other potential polytopes as it was the idea behind the problem that led to this ticket. Further, it is an "unfair" comparison, since But cool that it seems to be a bit faster for larger stuff. :) |
This comment has been minimized.
This comment has been minimized.
comment:9
I modified the description of the ticket to make this more clear that the option "minimal=True" does not have the goal to be faster, but rather to simply provide a different type of output. |
comment:10
Well, I would expect it to be asymptotically faster, as I was seeing those bad timings with matrix computations with |
comment:11
Could you perhaps fix this:
Instead of adopting this syntax
I would propse changing Forgot spaces: - new_ring = number_field_elements_from_algebraics(A.list(),embedded=True,minimal=True)[0]
+ new_ring = number_field_elements_from_algebraics(A.list(), embedded=True, minimal=True)[0] Also the previous is a super long line. Maybe you can change this along with
|
Reviewer: Jonathan Kliem |
comment:13
the pyflakes warning can be fixed by adding "assert R" just after the line |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:15
LGTM. |
Changed branch from u/jipilab/min_affhull to |
Currently, the computation of the
affine_hull_projection
is done by default inAA
which is not optimal sometimes.Currently:
With this ticket:
The idea behind this ticket is that applying
T
(the matrix transformingAP
is applied to a different polytopeZ
, so it might pay off to makeT
minimal so that for a largeZ
the computation of the transformation is not slowed by operations inAA
.CC: @kliem
Component: geometry
Keywords: affine_hull, polytope
Author: Jean-Philippe Labbé
Branch/Commit:
d78b11b
Reviewer: Jonathan Kliem
Issue created by migration from https://trac.sagemath.org/ticket/30946
The text was updated successfully, but these errors were encountered: