# HG changeset patch
# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
# Date 1366276865 -7200
# Node ID ec1ce4bf8034d519244cb842da26fa8cdd6bd800
# Parent 3f1a463b21bb5bb7eabf6ed74c3438a9c3f043bf
Reviewer patch
diff --git a/sage/libs/flint/fmpq_poly.pxd b/sage/libs/flint/fmpq_poly.pxd
a
|
b
|
|
10 | 10 | ctypedef void * mpz_t |
11 | 11 | ctypedef void * mpq_t |
12 | 12 | |
13 | | cdef extern from "fmpq.h": |
| 13 | cdef extern from "flint/fmpq.h": |
14 | 14 | ctypedef void * fmpq_t |
15 | 15 | void fmpq_init(fmpq_t) |
16 | 16 | void fmpq_clear(fmpq_t) |
17 | 17 | void fmpq_get_mpq(mpq_t, fmpq_t) |
18 | 18 | void fmpq_set_mpq(fmpq_t, mpq_t) |
19 | 19 | |
20 | | cdef extern from "fmpz_vec.h": |
| 20 | cdef extern from "flint/fmpz_vec.h": |
21 | 21 | long _fmpz_vec_max_limbs(void * c, long n) |
22 | 22 | |
23 | | cdef extern from "fmpq_poly.h": |
| 23 | cdef extern from "flint/fmpq_poly.h": |
24 | 24 | ctypedef void * fmpz_t |
25 | 25 | ctypedef void * fmpq_poly_t |
26 | 26 | |
diff --git a/sage/libs/flint/fmpz_poly.pxd b/sage/libs/flint/fmpz_poly.pxd
a
|
b
|
|
1 | 1 | include "../../ext/stdsage.pxi" |
2 | | include "../../ext/cdefs.pxi" |
3 | 2 | |
4 | 3 | from flint cimport * |
5 | 4 | include "fmpz_poly.pxi" |
diff --git a/sage/libs/flint/ntl_interface.pxd b/sage/libs/flint/ntl_interface.pxd
a
|
b
|
|
1 | | include "../../ext/cdefs.pxi" |
2 | 1 | include "fmpz.pxi" |
3 | 2 | |
4 | 3 | from sage.libs.flint.fmpz_poly cimport fmpz_poly_t |
diff --git a/sage/libs/flint/ulong_extras.pxd b/sage/libs/flint/ulong_extras.pxd
a
|
b
|
|
1 | 1 | include "../../ext/stdsage.pxi" |
2 | | include "../../ext/cdefs.pxi" |
3 | 2 | |
4 | 3 | from sage.libs.flint.flint cimport * |
5 | 4 | |
diff --git a/sage/rings/polynomial/polynomial_rational_flint.pyx b/sage/rings/polynomial/polynomial_rational_flint.pyx
a
|
b
|
|
188 | 188 | |
189 | 189 | sage: f = ZZ['x']([1..10^6]) |
190 | 190 | sage: g = f.change_ring(QQ) |
191 | | sage: g[:10] # not long anymore thanks to trac #12173 |
| 191 | sage: g[:10] |
192 | 192 | 10*x^9 + 9*x^8 + 8*x^7 + 7*x^6 + 6*x^5 + 5*x^4 + 4*x^3 + 3*x^2 + 2*x + 1 |
193 | 193 | """ |
194 | 194 | cdef long deg |
diff --git a/sage/rings/polynomial/polynomial_zmod_flint.pyx b/sage/rings/polynomial/polynomial_zmod_flint.pyx
a
|
b
|
|
204 | 204 | |
205 | 205 | sage: a = ZZ['x'](range(100000)) |
206 | 206 | sage: R = Integers(3)['x'] |
207 | | sage: R(a) |
| 207 | sage: R(a) # long time (7s on sage.math, 2013) |
208 | 208 | 2*x^99998 + ... + x |
209 | 209 | """ |
210 | 210 | sig_on() |