Yeah, I also found some morphisms in the polynomial ring code, but like the
QQ <-> ZZ code, it seemed dated (and hence might not follow recommended
practices).

As for sage.algebras.*, I didn't really see anything other than Boolean
return values.


On Fri, Jun 6, 2014 at 9:21 AM, Vincent Delecroix <20100.delecr...@gmail.com
> wrote:

> 2014-06-06 17:12 UTC+02:00, Travis Scrimshaw <tsc...@ucdavis.edu>:
> > I don't think there's much documentation beyond what's in
> > _coerce_map_from_() in Parent.
> >
> > If it returns re, then it uses _element_constructor_ to construct the
> > morphism. Otherwise you return a morphism. I think there's some examples
> in
> >
> > src/algebras which returns morphisms (I'm pretty sure I've seen it,
> > definitely wrote some code on it, but I don't remember off-hand for
> what).
>
> Two other examples are ZZ -> QQ and QQ->ZZ which are respectively a
> Morphism and a Map (see sage/rings/rational.pyx at the very end of the
> file).
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at http://groups.google.com/group/sage-devel.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Andrew

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to