Closed videlec closed 9 years ago
Okayyyyyyyyyyyyyy. End of the review. Nothing else to add ;-)
Very good job. This code needed to be cleaned, and it is much better now.
But please, next time: smaller patches. You waste your reviewers' health :-P
Nathann
Replying to @nathanncohen:
HMmmmmmmm... I don't exactly know what the isometry group is, but let's try anyway: what about defining a complete graph on your points, in which each edge has a color associated to its length. Wouldn't the automorphism group of that be what you want?
That is a valid definition. But the standard one is the set of orthogonal matrices that preserve the polyhedron. And it would be nice for isometry_group
to be a finite matrix group (and not permutations)!
Patchbot should be happy after that.
Some broken doctests in the patchbot's report. Also, can you be sure that the sqrt(6.) / factorial(5)
are not subject to numerical noise? There is no #tol
on them right now.
Nathann
Hmmmmmm.. I can't seem to find on google an implementation of an isometry group function anywhere O_o
Hi Vincent and Nathann
Just a quick comment, as I'm not sure how useful this will be for general polyhedra: There is a method for lattice polytopes:
LatticePolytope_PPL
(in sage.geometry.polyhedron.ppl_lattice_polytope
) has a method lattice_automorphism_group()
Cheers, Jan
Replying to @nathanncohen:
Some broken doctests in the patchbot's report. Also, can you be sure that the
sqrt(6.) / factorial(5)
are not subject to numerical noise? There is no#tol
on them right now.
I don't know... Patchbot did not complain about this.
Okayyyyyyy. Then positive_review
!
Nathann
Reviewer: Nathann Cohen
Changed branch from u/vdelecroix/18213 to a58da00
A lot of polytopes constructors in
sage.geometry.polyhedron.library
. For examplegreat_rhombicuboctahedron
is defined overQQ
but it should be defined overQQ[sqrt(2)]
! There are in two places rough approximation of sqrt(2) in the codeInstead, we should use the
base_ring
argument (with appropriate defaults) and usebase_ring(2).sqrt()
instead.Polytopes
:Polytopes.orthonormal_1
,Polytopes.project_1
will be renamed respectivelyzero_sum_projection
andproject_points
Polytopes._pfunc
is just removedWhile we're at it, remove the deprecations from #11634.
During the process I discovered two annoying bugs:
18214 Bug in volume computation of polyhedron
18220 Bug when creating a polyhedron with coefficients in RR
Moreover, we can get a great speed up with the following because many polytopes have now coordinates in a quadratic number fields:
18215: Huge speed up for hash of quadratic number field elements
18226: Native
_mpfr_
method on quadratic number field elementsDepends on #18211
CC: @nathanncohen
Component: geometry
Author: Vincent Delecroix
Branch/Commit:
a58da00
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/18213