Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
make restricted automorphism group as matrixlist immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Kliem committed Dec 17, 2019
1 parent 50a4975 commit a7eeece
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/sage/geometry/polyhedron/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7769,6 +7769,11 @@ def restricted_automorphism_group(self, output="abstract"):
Traceback (most recent call last):
...
ValueError: unknown output 'foobar', valid values are ('abstract', 'permutation', 'matrix', 'matrixlist')
Check that :trac:`28828` is fixed::
sage: P.restricted_automorphism_group(output="matrixlist")[0].is_immutable()
True
"""
# The algorithm works as follows:
#
Expand Down Expand Up @@ -7883,6 +7888,9 @@ def edge_label(i, j, c_ij):
A = sum(V[perm(i)].column() * Vplus[i].row() for i in range(len(V)))
matrices.append(A + W)

for mat in matrices:
mat.set_immutable()

if output == "matrixlist":
return tuple(matrices)
else:
Expand Down

0 comments on commit a7eeece

Please sign in to comment.