R.<x> = GF(2)[]

f = x^5+x^2+1

fx = ntl.GF2X(f)

gives error:

Traceback (most recent call last):    fx
  File "ntl_GF2X.pyx", line 141, in
sage.libs.ntl.ntl_GF2X.ntl_GF2X.__init__
AttributeError: 'sage.rings.polynomial.polynomial_modn_dense_ntl.Po'
object has no attribute '_Polynomial_dense_mod_n__poly'

fx = ntl.GF2X(f.list()) works,
as well as
fx = ntl.GF2X(f.ntl_ZZ_pX())

(It is a shame that normal arithmetic for polys over GF(2) still seems
to be implemented by the ntl ZZ_pX library, which is usually at least
10 times slower than GF2X,  up to degree 2^17 anyway. In that range
GF2X matches the speed of magma.)





--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@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-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to