#16511: Fix solve_right for matrices over IntegerModRing
-------------------------+-------------------------------------------------
Reporter: pbruin | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-6.3
Component: linear | Keywords: matrix integer_mod
algebra | solve_right
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
-------------------------+-------------------------------------------------
Here are two bugs in `Matrix.solve_right()`:
{{{
sage: A = Matrix.identity(2)
sage: B = Matrix.identity(Zmod(8), 2)
sage: B.solve_right(A)
...
AttributeError: 'sage.rings.integer_ring.IntegerRing_class' object has no
attribute 'cover_ring'
sage: B.solve_right(B)
...
PariError: syntax error, unexpected ')', expecting )-> or ',': (1,0)
}}}
In the first case, there is no solution due to the different base rings;
we should at least return a more informative error message. In the second
case, `B` itself is the unique solution.
--
Ticket URL: <http://trac.sagemath.org/ticket/16511>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.