Closed kliem closed 4 years ago
Branch: public/29583
Some timings in the description are repeated, probably you forgot "Cr*Cb" in the status quo and didn't show it in the new times...
If you can fix this quickly, that'd be helpful!
Spaces between binary operation:
- sage: P*P1 == Q*Q1
+ sage: P * P1 == Q * Q1
+ True
- sage: P.polar(in_affine_span=True)*P1 == Q.polar(in_affine_span=True)*Q1
+ sage: P.polar(in_affine_span=True) * P1 == Q.polar(in_affine_span=True) * Q1
+ True
and
- new_vertices = (tuple(x)+tuple(y)
+ new_vertices = (tuple(x) + tuple(y)
+ for x in self.vertex_generator() for y in other.vertex_generator())
Might be nice to correct the coding styles with the multiple statements on one line with the :
?
Description changed:
---
+++
@@ -31,9 +31,9 @@
sage: %time _ = Cr*Cr
CPU times: user 42.3 ms, sys: 62 µs, total: 42.3 ms
Wall time: 42 ms
-sage: %time _ = Cr*Cr
-CPU times: user 42.2 ms, sys: 87 µs, total: 42.3 ms
-Wall time: 42 ms
+sage: %time _ = Cr*Cb
+CPU times: user 164 ms, sys: 0 ns, total: 164 ms
+Wall time: 164 ms
sage: Cr_field = polytopes.cross_polytope(8, backend='field')
sage: Cb_field = polytopes.hypercube(8, backend='field')
Changed branch from public/29583 to public/29583-reb
It looks good to me. I added some more pep8 cleaning.
If the bot is happy and you agree with my changes, I would say it can be put on positive review. Hopefully, the changes won't cause too many conflicts.
LGTM. Thank you.
Reviewer: Jean-Philippe Labbé
Merge conflict
Replying to @vbraun:
Merge conflict
@vbraun: I believe this is no longer an issue.
The merge conflict appears to be with #28982, which was just rejected because it needs to be rebased (due to failing doctests). IMO we should just rebase #28982 and leave this ticket as it is.
This looks reasonable to me.
@
Volker: Let us know if there are still further problems with merging this ticket based as it is. It seems to work for us.
Changed keywords from polytopes. product to polytopes. product, sd109
I just pulled this in to 9.2.beta0 and it appears to work fine.
Changed branch from public/29583-reb to dfb3144
Changed keywords from polytopes. product, sd109 to polytopes, product, sd109
We set up the product of two polyhedra with both Vrepresentation and Hrepresentation. This a great improvement, if the backend supports precomputed data (currently
field
). Otherwise, it can be an improvement, if the Hrepresentation is much shorter than the Vrepresentation.Before this ticket:
With this ticket:
CC: @jplab @LaisRast
Component: geometry
Keywords: polytopes, product, sd109
Author: Jonathan Kliem
Branch:
dfb3144
Reviewer: Jean-Philippe Labbé
Issue created by migration from https://trac.sagemath.org/ticket/29583