Ticket #10515: trac_10515_matrix_group_list_cs.patch

File trac_10515_matrix_group_list_cs.patch, 698 bytes (added by stumpc5, 9 years ago)

Patch removing bug in listing elements in a matrix group

  • sage/groups/matrix_gps/matrix_group.py

    # HG changeset patch
    # Parent 78b316467b59d4c55b9b180f07dd485f64355d89
    diff --git a/sage/groups/matrix_gps/matrix_group.py b/sage/groups/matrix_gps/matrix_group.py
    a b class MatrixGroup_gap(MatrixGroup_generi 
    561561            raise ValueError, "group must be finite"
    562562
    563563        MS = self.matrix_space()
    564         if not self.base_ring().is_field():
     564        R = self.base_ring()
     565        if not R.is_field() or not R.is_finite():
    565566            s = self._gap_().Elements().str(use_file=True)
    566567            es = eval(s)
    567568            v = [self.element_class(MS(x), self, check=False) for x in es]