Changeset 3173:8ef6a6e960f0

Ignore:
Timestamp:
02/26/07 20:27:39 (6 years ago)
Branch:
default
Parents:
3168:7209bfa43e10 (diff), 3172:2b664e2fb661 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

merge

Files:
2 edited

Unmodified
Added
Removed
• sage/libs/ntl/ntl.pyx

 r3154 from sage.rings.integer import Integer from sage.rings.integer cimport Integer #cimport sage.rings.integer """ cdef Integer output output = Integer() output = PY_NEW(Integer) ZZX_getitem_as_mpz(&output.value, self.x, i) return output """ return self.getitem_as_int(i) def list(self): r""" Retrieves coefficients as a list of SAGE Integers. EXAMPLES: sage: x = ntl.ZZX([129381729371289371237128318293718237, 2, -3, 0, 4]) sage: L = x.list(); L [129381729371289371237128318293718237, 2, -3, 0, 4] sage: type(L[0]) sage: x = ntl.ZZX() sage: L = x.list(); L [] """ cdef int i return [self[i] for i from 0 <= i <= ZZX_degree(self.x)] def __add__(ntl_ZZX self, ntl_ZZX other):
• sage/libs/ntl/ntl.pyx

 r3170 if x is None: from random import randint seed = make_new_ZZ(str(randint(0,2**64))) seed = make_new_ZZ(str(randint(0,int(2)**64))) else: seed = make_new_ZZ(str(x))
Note: See TracChangeset for help on using the changeset viewer.