[Clp-tickets] [COIN-OR Linear Programming Solver] #27: Bug in ClpPackedMatrix::transposeTimes

COIN-OR Linear Programming Solver coin-trac at coin-or.org
Tue Sep 30 08:35:40 EDT 2008


#27: Bug in ClpPackedMatrix::transposeTimes
------------------------+---------------------------------------------------
 Reporter:  tlawry      |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  major       |   Milestone:          
Component:  component1  |     Version:          
 Keywords:              |  
------------------------+---------------------------------------------------
 The starting points of each
 column are stored in columnStart and the lengths (the amount actually used
 to store the column) is stored in columnLength. If you want to iterate
 over
 the elements in the column, then you need to use the value in
 columnLength,
 e.g. to iterate over the elements in column i
 for (j = columnStart[i]; j < columnStart[i] + columnLength[i]; j++)

 However, in the original code, the upper bound on the loop was instead set
 to columnStart[i+1]
 for (j = columnStart[i]; j < columnStart[i+1]; j++)

 This was causing an access violation in one of our jobs. I've fixed this
 in
 all the places it occurs in the transposeTimes function (4 places -
 someone
 else had already fixed the fifth place!).

-- 
Ticket URL: <https://projects.coin-or.org/Clp/ticket/27>
COIN-OR Linear Programming Solver <http://projects.coin-or.org/Clp>
A linear programming solver.



More information about the Clp-tickets mailing list