Ticket #6760 (closed defect: fixed)
error in quaternion algebra ideal basis
| Reported by: | robertwb | Owned by: | tbd |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.3 |
| Component: | algebra | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | Alex Ghitza | |
| Authors: | Robert Bradshaw | Merged in: | sage-4.3.alpha0 |
| Dependencies: | Stopgaps: |
Description
sage: R.<i,j,k> = QuaternionAlgebra(-1, -13)
sage: I = R.ideal([2+i, 3*i, 5*j, j+k]); I
Fractional ideal (2 + i, 3*i, j + k, 5*k)
sage: I.free_module()
------------------------------------------------------------
Traceback (most recent call last):
File "<ipython console>", line 1, in <module>
File "/Users/robert/sage/sage-4.0/local/lib/python2.6/site-packages/sage/algebras/quatalg/quaternion_algebra.py", line 1503, in free_module
M = self.hermite_basis_matrix().row_module(ZZ)
AttributeError: 'QuaternionFractionalIdeal_rational' object has no attribute 'hermite_basis_matrix'
Attachments
Change History
comment:1 Changed 4 years ago by robertwb
- Summary changed from error in quaternion algebra ideal basis to [with patch, needs review] error in quaternion algebra ideal basis
I think this is the right fix, but someone more familiar with the code should take a look.
comment:2 Changed 4 years ago by AlexGhitza
- Summary changed from [with patch, needs review] error in quaternion algebra ideal basis to error in quaternion algebra ideal basis
- Authors set to Robert Bradshaw
comment:3 Changed 4 years ago by AlexGhitza
- Reviewers set to Alex Ghitza
Looks good to me. I am adding a patch with a doctest (just the example that was given above).
Robert, if you're happy with the second patch, please change this to a positive review.
Changed 4 years ago by AlexGhitza
-
attachment
trac_6760_doctest.patch
added
apply after the previous patch
Note: See
TracTickets for help on using
tickets.
