@@ -446,7 +446,7 @@ cdef class CoinBackend(GenericBackend):
446
446
"""
447
447
cdef int i, c
448
448
cdef int m = len (constraints)
449
- cdef int * rows = < int * > sage_malloc (m * sizeof(int * ))
449
+ cdef int * rows = < int * > check_malloc (m * sizeof(int * ))
450
450
cdef int nrows = self .si.getNumRows()
451
451
452
452
for i in xrange (m):
@@ -701,8 +701,8 @@ cdef class CoinBackend(GenericBackend):
701
701
"""
702
702
703
703
cdef int n = len (indices)
704
- cdef int * c_indices = < int * > sage_malloc (n* sizeof(int ))
705
- cdef double * c_values = < double * > sage_malloc (n* sizeof(double ))
704
+ cdef int * c_indices = < int * > check_malloc (n* sizeof(int ))
705
+ cdef double * c_values = < double * > check_malloc (n* sizeof(double ))
706
706
cdef int i
707
707
708
708
for 0 <= i< n:
@@ -1291,8 +1291,8 @@ cdef class CoinBackend(GenericBackend):
1291
1291
"""
1292
1292
cdef int n = self .model.solver().getNumCols()
1293
1293
cdef int m = self .model.solver().getNumRows()
1294
- cdef int * c_cstat = < int * > sage_malloc (n * sizeof(int ))
1295
- cdef int * c_rstat = < int * > sage_malloc (m * sizeof(int ))
1294
+ cdef int * c_cstat = < int * > check_malloc (n * sizeof(int ))
1295
+ cdef int * c_rstat = < int * > check_malloc (m * sizeof(int ))
1296
1296
cdef list cstat
1297
1297
cdef list rstat
1298
1298
# enableSimplexInterface must be set to use getBasisStatus().
@@ -1419,8 +1419,8 @@ cdef class CoinBackend(GenericBackend):
1419
1419
1420
1420
if n != self .model.solver().getNumCols() or m != self .model.solver().getNumRows():
1421
1421
raise ValueError (" Must provide the status of every column and row variables" )
1422
- c_cstat = < int * > sage_malloc (n * sizeof(int ))
1423
- c_rstat = < int * > sage_malloc (m * sizeof(int ))
1422
+ c_cstat = < int * > check_malloc (n * sizeof(int ))
1423
+ c_rstat = < int * > check_malloc (m * sizeof(int ))
1424
1424
for i in range (n):
1425
1425
c_cstat[i] = cstat[i]
1426
1426
for i in range (m):
@@ -1487,8 +1487,8 @@ cdef class CoinBackend(GenericBackend):
1487
1487
if i < 0 or i >= m:
1488
1488
raise ValueError (" i = %s . The i-th row of the tableau doesn't exist" % i)
1489
1489
1490
- cdef double * c_slack = < double * > sage_malloc (m * sizeof(double ))
1491
- cdef double * c_z = < double * > sage_malloc (n * sizeof(double ))
1490
+ cdef double * c_slack = < double * > check_malloc (m * sizeof(double ))
1491
+ cdef double * c_z = < double * > check_malloc (n * sizeof(double ))
1492
1492
cdef list slack
1493
1493
cdef list ithrow
1494
1494
# enableSimplexInterface must be set to use getBasisStatus().
@@ -1551,7 +1551,7 @@ cdef class CoinBackend(GenericBackend):
1551
1551
# getBInvACol(j) is getBinvCol(j-n)
1552
1552
raise ValueError (" j = %s . The j-th column of the tableau doesn't exist" % j)
1553
1553
1554
- cdef double * c_vec = < double * > sage_malloc (m * sizeof(double ))
1554
+ cdef double * c_vec = < double * > check_malloc (m * sizeof(double ))
1555
1555
cdef list jthcol
1556
1556
# enableSimplexInterface must be set to use getBasisStatus().
1557
1557
# See projects.coin-or.org/Osi/ticket/84
0 commit comments