#9524: Nasty bug with polynomial arithmetic and NTL contexts
-------------------------------------+-------------------------------------
       Reporter:  craigcitro         |        Owner:  AlexGhitza
           Type:  defect             |       Status:  needs_review
       Priority:  critical           |    Milestone:  sage-6.2
      Component:  basic arithmetic   |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Jean-Pierre Flori  |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/jpflori/ticket/9524              |  964979fc886e507447a047efd0c471f3e348119e
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------
Changes (by jpflori):

 * cc: defeo (added)


Comment:

 It should be possible to define a cpp class storing the two pointers (as
 the current C struct) with an additional mehod calling the restore method
 through the two pointers in sage/libs/ntl/whatever.pxd  or .h and
 implement it directly in an additional sage/libs/ntl/whatever.cpp.
 One would have to include the NTL directly, and maybe hack through the
 hackish name mangling currently done in Sage (I presume the NTL wrapper
 was written before Pyrex/Cython correctly supported C++).
 Not sure it is worth the trouble doing that in Sage.
 But this is surely worth a mail to Shoup in case he agrees to add a new
 method to ZZ_pEContext restoring both the modulus and the characteristic.

--
Ticket URL: <http://trac.sagemath.org/ticket/9524#comment:9>
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.

Reply via email to