#17585: Implement element_ring() for free module elements
-------------------------+-------------------------------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.5
Component: linear | Keywords:
algebra | Authors: Jeroen Demeyer
Merged in: | Report Upstream: N/A
Reviewers: | Branch:
Work issues: | Dependencies: #10513, #17578, #17561,
Commit: | #17583, #17584
Stopgaps: |
-------------------------+-------------------------------------------------
See https://groups.google.com/forum/#!topic/sage-devel/7n5xtT9Dw2g
We add a method `element_ring` to `FreeModule` and `FreeModuleElement`
indicating the ring from which the entries `v[i]` come. Example:
{{{
sage: M = (ZZ^2) * (1/2)
sage: v = M([0,1/2])
sage: v.base_ring()
Integer Ring
sage: v.element_ring()
Rational Field
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/17585>
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.