Ticket #12173: trac_12173-review.patch

File trac_12173-review.patch, 2.7 KB (added by jdemeyer, 9 years ago)
  • sage/libs/flint/fmpq_poly.pxd

    # 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  
    1010    ctypedef void * mpz_t
    1111    ctypedef void * mpq_t
    1212
    13 cdef extern from "fmpq.h":
     13cdef extern from "flint/fmpq.h":
    1414    ctypedef void * fmpq_t
    1515    void fmpq_init(fmpq_t)
    1616    void fmpq_clear(fmpq_t)
    1717    void fmpq_get_mpq(mpq_t, fmpq_t)
    1818    void fmpq_set_mpq(fmpq_t, mpq_t)
    1919
    20 cdef extern from "fmpz_vec.h":
     20cdef extern from "flint/fmpz_vec.h":
    2121    long _fmpz_vec_max_limbs(void * c, long n)
    2222
    23 cdef extern from "fmpq_poly.h":
     23cdef extern from "flint/fmpq_poly.h":
    2424    ctypedef void * fmpz_t
    2525    ctypedef void * fmpq_poly_t
    2626
  • sage/libs/flint/fmpz_poly.pxd

    diff --git a/sage/libs/flint/fmpz_poly.pxd b/sage/libs/flint/fmpz_poly.pxd
    a b  
    11include "../../ext/stdsage.pxi"
    2 include "../../ext/cdefs.pxi"
    32
    43from flint cimport *
    54include "fmpz_poly.pxi"
  • sage/libs/flint/ntl_interface.pxd

    diff --git a/sage/libs/flint/ntl_interface.pxd b/sage/libs/flint/ntl_interface.pxd
    a b  
    1 include "../../ext/cdefs.pxi"
    21include "fmpz.pxi"
    32
    43from sage.libs.flint.fmpz_poly cimport fmpz_poly_t
  • sage/libs/flint/ulong_extras.pxd

    diff --git a/sage/libs/flint/ulong_extras.pxd b/sage/libs/flint/ulong_extras.pxd
    a b  
    11include "../../ext/stdsage.pxi"
    2 include "../../ext/cdefs.pxi"
    32
    43from sage.libs.flint.flint cimport *
    54
  • sage/rings/polynomial/polynomial_rational_flint.pyx

    diff --git a/sage/rings/polynomial/polynomial_rational_flint.pyx b/sage/rings/polynomial/polynomial_rational_flint.pyx
    a b  
    188188
    189189            sage: f = ZZ['x']([1..10^6])
    190190            sage: g = f.change_ring(QQ)
    191             sage: g[:10] # not long anymore thanks to trac #12173
     191            sage: g[:10]
    192192            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           
    193193        """
    194194        cdef long deg
  • sage/rings/polynomial/polynomial_zmod_flint.pyx

    diff --git a/sage/rings/polynomial/polynomial_zmod_flint.pyx b/sage/rings/polynomial/polynomial_zmod_flint.pyx
    a b  
    204204
    205205            sage: a = ZZ['x'](range(100000))
    206206            sage: R = Integers(3)['x']
    207             sage: R(a)
     207            sage: R(a)  # long time (7s on sage.math, 2013)
    208208            2*x^99998 + ... + x
    209209        """
    210210        sig_on()