There are some implemented coercion maps already (see sage.rings.finite_rings.integer_mod.Integer_to_IntegerMod). Many of these tickets can be solved by writing optimized coercion and conversion morphisms and including appropriate section() functions on some of them. See the patch at #9814, though that still needs a bit of work.
I can probably do this fairly easily, but not tonight. :-) David On Thu, Sep 9, 2010 at 12:24, David Harvey <dmhar...@cims.nyu.edu> wrote: > Dear sage-devel, > > Sage is very slow. I discovered this (again) while trying to write a > prototype of an algorithm for computing zeta functions of projective > varieties. I need to multiply lots of polynomials and matrices over finite > rings, and frequently move coefficients between polynomials and matrices. > The arithmetic is actually not too bad; it's the boring data movement stuff > that really sucks. I made a bunch of tickets: > > http://trac.sagemath.org/sage_trac/ticket/9882 > http://trac.sagemath.org/sage_trac/ticket/9883 > http://trac.sagemath.org/sage_trac/ticket/9884 > http://trac.sagemath.org/sage_trac/ticket/9885 > http://trac.sagemath.org/sage_trac/ticket/9886 > http://trac.sagemath.org/sage_trac/ticket/9887 > http://trac.sagemath.org/sage_trac/ticket/9888 > > Maybe I can be the first to #10000 if I keep going! > > david > > -- > To post to this group, send an email to sage-devel@googlegroups.com > To unsubscribe from this group, send an email to > sage-devel+unsubscr...@googlegroups.com<sage-devel%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/sage-devel > URL: http://www.sagemath.org > -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org