Ticket #10515 (closed defect: fixed)
Removed bug in MatrixGroup.list()
| Reported by: | stumpc5 | Owned by: | joyner |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.6.2 |
| Component: | group theory | Keywords: | matrix group |
| Cc: | Work issues: | ||
| Report Upstream: | N/A | Reviewers: | Gagan Sekhon |
| Authors: | Christian Stump, Aly Deines | Merged in: | sage-4.6.2.alpha3 |
| Dependencies: | Stopgaps: |
Description
the list method for MatrixGroup worked only for ZZ and GF(p), but not for QQ. This one line patch should do the job.
We had:
sage: gens = [matrix(ZZ,2,[1,0,0,1])] sage: MatrixGroup(gens).list() [[1 0] [0 1]] sage: gens = [matrix(GF(5),2,[1,0,0,1])] sage: MatrixGroup(gens).list() [[1 0] [0 1]] sage: gens = [matrix(QQ,2,[1,0,0,1])] sage: MatrixGroup(gens).list() ... AttributeError: 'RationalField_with_category' object has no attribute 'multiplicative_generator'
Now, the third works as well:
sage: gens = [matrix(QQ,2,[1,0,0,1])] sage: MatrixGroup(gens).list() [[1 0] [0 1]]
Attachments
Change History
Changed 2 years ago by stumpc5
-
attachment
trac_10515_matrix_group_list_cs.patch
added
Changed 2 years ago by aly.deines
-
attachment
trac_10515_matrix_group_list_cs.2.patch
added
added doctests
comment:3 Changed 2 years ago by gagansekhon
- Authors changed from Christian Stump to Christian Stump, Gagan Sekhon
comment:4 Changed 2 years ago by jdemeyer
- Reviewers set to Gagan Sekhon
- Milestone set to sage-4.6.2
- Authors changed from Christian Stump, Gagan Sekhon to Christian Stump, Aly Deines
Gagan: perhaps you meant to add yourself as reviewer instead of author?
comment:5 Changed 2 years ago by jdemeyer
- Status changed from positive_review to closed
- Resolution set to fixed
- Merged in set to sage-4.6.2.alpha3
Changed 2 years ago by jdemeyer
-
attachment
trac_10515_matrix_group_list_cs.3.patch
added
Fixed commit message, apply only this
Note: See
TracTickets for help on using
tickets.

Patch removing bug in listing elements in a matrix group