Skip to content
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.restricted_automorphism_group(): allow returning the affine matrix group #20259

Closed
jdemeyer opened this issue Mar 23, 2016 · 28 comments

Comments

@jdemeyer
Copy link

Currently, the method Polyhedron.restricted_automorphism_group() returns an abstract permutation on the vertices. In this ticket, we optionally allow returning a concrete matrix group on the ambient space, either as matrix group or list of matrices.

We also fix this bug:

sage: polytopes.dodecahedron().restricted_automorphism_group()
---------------------------------------------------------------------------
UnboundLocalError                         Traceback (most recent call last)
<ipython-input-6-d332241c23a2> in <module>()
----> 1 polytopes.dodecahedron().restricted_automorphism_group()

/usr/local/src/sage-config/src/sage/misc/cachefunc.pyx in sage.misc.cachefunc.CachedMethodCallerNoArgs.__call__ (build/cythonized/sage/misc/cachefunc.c:12404)()
   2233         if self.cache is None:
   2234             f = self.f
-> 2235             self.cache = f(self._instance)
   2236         return self.cache
   2237 

/usr/local/src/sage-config/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base.pyc in restricted_automorphism_group(self)
   4619                 v_i = v_list[i]
   4620                 v_j = v_list[j]
-> 4621                 c_ij = rational_approximation( v_i * Qinv * v_j )
   4622                 G.add_edge(i+1,j+1, edge_label(i,j,c_ij))
   4623 

UnboundLocalError: local variable 'rational_approximation' referenced before assignment

Component: geometry

Author: Jeroen Demeyer

Branch/Commit: fff1186

Reviewer: Volker Braun

Issue created by migration from https://trac.sagemath.org/ticket/20259

@jdemeyer jdemeyer added this to the sage-7.2 milestone Mar 23, 2016
@jdemeyer
Copy link
Author

@jdemeyer
Copy link
Author

Commit: 9eda100

@jdemeyer
Copy link
Author

New commits:

9eda100Allow returning the matrix group in restricted_automorphism_group()

@jdemeyer
Copy link
Author

Dependencies: #20279

@jdemeyer
Copy link
Author

Changed dependencies from #20279 to #20279, #20287

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 25, 2016

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

80ed2fbUse ring when constructing a matrix from numpy
f9663a7Implement the Moore-Penrose pseudoinverse
ba8723aHomogeneous coordinates of polyhedron V-representation objects
fd495ecImprove documentation of homogeneous_vector()
dc2eb79Merge remote-tracking branch 'trac/u/jdemeyer/homogeneous_coordinates_of_polyhedron_v_representation_objects' into t/20259/polyhedron_restricted_automorphism_group____allow_returning_the_affine_matrix_group
4966468Allow returning the matrix group in restricted_automorphism_group()

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 25, 2016

Changed commit from 9eda100 to 4966468

@jdemeyer

This comment has been minimized.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 31, 2016

Changed commit from 4966468 to e70a1ea

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Mar 31, 2016

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

e70a1eaAllow returning the matrix group in restricted_automorphism_group()

@jdemeyer

This comment has been minimized.

@jdemeyer

This comment has been minimized.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 1, 2016

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

40da88aAllow returning the matrix group in restricted_automorphism_group()

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 1, 2016

Changed commit from e70a1ea to 40da88a

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 1, 2016

Changed commit from 40da88a to 293286c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 1, 2016

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

293286cAllow returning the matrix group in restricted_automorphism_group()

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 1, 2016

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

d82fa6eAllow returning the matrix group in restricted_automorphism_group()

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 1, 2016

Changed commit from 293286c to d82fa6e

@jdemeyer
Copy link
Author

jdemeyer commented Apr 1, 2016

Changed dependencies from #20279, #20287 to none

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 13, 2016

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

d9f8bdeFix conversions matrix -> AffineGroup
4163d00Allow returning the matrix group in restricted_automorphism_group()

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 13, 2016

Changed commit from d82fa6e to 4163d00

@jdemeyer
Copy link
Author

Dependencies: #20422

@jdemeyer
Copy link
Author

Changed dependencies from #20422 to none

@vbraun
Copy link
Member

vbraun commented Apr 30, 2016

comment:18

Nice!

Can we rename kind to output, representation, or something like that? It always returns the same abstract group, not different kinds of automorphism groups.

There should be some discussion about what the returned matrix groups are. Something like:

If the polyhedron is not full dimensional, the linear automorphism group is infinite as it can act arbitrarily in the orthogonal directions. Nevertheless, as a permutation group, the restricted automorphism group is finite. It has a natural representation as the subset of linear automorphisms that act trivially in the orthogonal directions. Use the output='matrix' option to return it.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 3, 2016

Branch pushed to git repo; I updated commit sha1. New commits:

fff1186Rename "kind" to "output" and clarify documentation

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 3, 2016

Changed commit from 4163d00 to fff1186

@vbraun
Copy link
Member

vbraun commented May 3, 2016

Reviewer: Volker Braun

@vbraun
Copy link
Member

vbraun commented May 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants