#12688: Span method allows setting incompatible base ring, despite 'check=True'
------------------------------+---------------------------------------------
Reporter: rbeezer | Owner: jason, was
Type: defect | Status: new
Priority: major | Milestone: sage-5.0
Component: linear algebra | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------------+---------------------------------------------
I discovered this while working on #12541. Documentation says the `check`
will "coerce entries of gens into base field." This does not appear to be
happening, and should.
First example is the root problem - second just shows that the `check`
flag seems ineffectual. I haven't looked at the code yet.
{{{
sage: (QQ^2).span(gens=[vector(QQ, [1,1/2])], base_ring=ZZ, check=True)
Free module of degree 2 and rank 1 over Integer Ring
Echelon basis matrix:
[ 1 1/2]
sage: (QQ^2).span(gens=[vector(QQ, [1,1/2])], base_ring=ZZ, check=False)
Free module of degree 2 and rank 1 over Integer Ring
Echelon basis matrix:
[ 1 1/2]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12688>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.