#19525: Improve GLPK error handling
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-7.2
Component: cython | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: Fixed upstream, | Work issues:
in a later stable release. | Commit:
Branch: | 597415278f3416e303a7eea9731c1e80090d0127
u/jdemeyer/improve_glpk_error_handling| Stopgaps:
Dependencies: |
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
hmm
{{{#!diff
@@ -618,8 +634,14 @@ cdef class GLPKBackend(GenericBackend):
(2.0, 2.0)
"""
cdef int n = glp_get_num_cols(self.lp)
+<<<<<<< HEAD
+ cdef MemoryAllocator mem = MemoryAllocator()
+ cdef int * c_indices = <int*>mem.allocarray(n+1, sizeof(int))
+ cdef double * c_values = <double*>mem.allocarray(n+1,
sizeof(double))
+=======
cdef int * c_indices = <int*> sig_malloc((n+1)*sizeof(int))
cdef double * c_values = <double*>
sig_malloc((n+1)*sizeof(double))
+>>>>>>> 7.2.beta1
cdef list indices = []
cdef list values = []
cdef int i,j
}}}
--
Ticket URL: <http://trac.sagemath.org/ticket/19525#comment:24>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.