Ticket #1250: trac1250.patch

File trac1250.patch, 1001 bytes (added by was, 14 years ago)
  • sage/rings/polynomial/multi_polynomial_libsingular.pyx

    # HG changeset patch
    # User William Stein <wstein@gmail.com>
    # Date 1195853329 28800
    # Node ID 30a7ef4914be450940504c998075f0e0e342ac3a
    # Parent  cad57dea1832909011c4e8c34de6cb708b7c7dcb
    trac #1250 -- control-c out of multivariate factor didn't work.
    
    diff -r cad57dea1832 -r 30a7ef4914be sage/rings/polynomial/multi_polynomial_libsingular.pyx
    a b cdef class MPolynomial_libsingular(sage. 
    30083008        # I make a temporary copy of the poly in self because singclap_factorize appears to modify it's parameter
    30093009        ptemp = p_Copy(self._poly,_ring)
    30103010        iv = NULL
     3011        _sig_on
    30113012        I = singclap_factorize ( ptemp, &iv , int(param)) #delete iv at some point
     3013        _sig_off
    30123014
    30133015        if param==1:
    30143016            v = [(co.new_MP(parent, p_Copy(I.m[i],_ring)) , 1)   for i in range(I.ncols)]