[CoinUtils-tickets] [COIN-OR Common Utilities] #52: bug in CoinPackedMatrix::gutsOfCopyOf

COIN-OR Common Utilities coin-trac at coin-or.org
Wed Jun 18 11:15:00 EDT 2008


#52: bug in CoinPackedMatrix::gutsOfCopyOf
------------------------+---------------------------------------------------
Reporter:  mrkilinc     |       Type:  defect
  Status:  new          |   Priority:  major 
 Version:  trunk (SVN)  |   Keywords:        
------------------------+---------------------------------------------------
 This bug happens whenever start[0] != 0...

 Lets say start={4,7,12,14} and len=NULL

 std::adjacent_difference(start + 1, start + (major + 1), length_); is
 called.

 But the result is ; length_={7,5,2}
 But it should be length_={3,5,2}

 The following line should be added after the previous line to fix this;

 length_[0] -= start[0];

-- 
Ticket URL: <https://projects.coin-or.org/CoinUtils/ticket/52>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list