#12688: Improve documentation of span method
------------------------------+---------------------------------------------
Reporter: rbeezer | Owner: jason, was
Type: enhancement | Status: new
Priority: minor | Milestone: sage-5.0
Component: linear algebra | Keywords:
Work_issues: | Upstream: N/A
Reviewer: | Author:
Merged: | Dependencies:
------------------------------+---------------------------------------------
Changes (by rbeezer):
* priority: major => minor
* type: defect => enhancement
Old description:
> 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]
> }}}
New description:
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. (Edit: this is an integral span of rational
vectors, a construction that is intended, so improving the documentation
might be in order.)
{{{
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]
}}}
--
Comment:
See some discussion on #12541.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12688#comment:2>
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.