#9944: categories for polynomial rings
--------------------------------------------+-------------------------------
Reporter: robertwb | Owner: nthiery
Type: defect | Status: needs_review
Priority: major | Milestone: sage-4.7.1
Component: categories | Resolution:
Keywords: | Work_issues:
Upstream: N/A | Reviewer: Nicolas M.
ThiƩry, Mike Hansen, Martin Raum
Author: Robert Bradshaw, Simon King | Merged:
Dependencies: sage-4.7 |
--------------------------------------------+-------------------------------
Comment(by SimonKing):
Replying to [comment:59 SimonKing]:
> ...
> __Improve Polynomial Base Injection Morphisms and use it for coercion__
>
>...
>
> The rule is now: If `P.an_element()` has a `_new_constant_poly` method
then it is used. Otherwise, if one can construct a one element in `P`
without calling coercion, and if it has `_rmul_` and if `_rmul_` does not
return `None` then it is used. Otherwise, `P._element_constructor_` is
used.
I stand corrected. The above rule did hold for an intermediate
(unpublished) patch version. With the new patch, all polynomial classes
have `_new_constant_poly`, and it will ''always'' be used for basering
injection.
Hence, there is a return statement after getting `_new_constant_poly`, and
the subsequent lines of
`sage.rings.polynomial.polynomial_element.PolynomialBaseInjection.__init__`
will never be executed. I will remove them in the final patch version, but
I first wait for input of a referee.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9944#comment:60>
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.