On 6/15/07, Joel B. Mohler <[EMAIL PROTECTED]> wrote: > > On Fri, Jun 15, 2007 at 03:38:36PM -0400, David Harvey wrote: > > If you really are doing a complete rewrite of the ntl wrapper, one thing > > I'd love you to keep in mind is NTL's global modulus business. I've never > > been convinced that this was fixed properly in SAGE. > > Yes, I'd say it qualifies as a "complete rewrite". I'm not quite certain what > is or is not properly fixed, but here's an associated question. Should the > ZZ_p > (etc.) elements keep a modulus and reset it before doing arithmetic? Or, does > this want to be kept global as in NTL. It seems rather frightening to have to > call setModulus in the front of every method.
The semantics of the NTL wrapper should be as close as possible to the semantics of NTL itself, so I think there should be a global modulus as it is now (as in NTL). -- William --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---