#16834: Change ring fails for affine morphisms.
-------------------------------------+-------------------------------------
Reporter: gjorgenson | Owner: gjorgenson
Type: defect | Status: needs_work
Priority: minor | Milestone: sage-6.4
Component: algebraic | Resolution:
geometry | Merged in:
Keywords: | Reviewers: Ben Hutz
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | 0a29b1b9788b97fa7bbd20d9443afe7118be673a
u/gjorgenson/ticket/16834 | Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Changes (by bhutz):
* status: needs_review => needs_work
Comment:
I think the endomorphism check needs some work, since we really want `is`
instead of `==`. Here is a suggestion to simplify things:
{{{
T=self.domain().change_ring(R)
if self.is_endomorphism():
H=End(T)
else:
H=Hom(T,self.codomain().change_ring(R))
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/16834#comment:8>
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.