Changeset 25


Ignore:
Timestamp:
Sep 19, 2002 1:37:55 PM (17 years ago)
Author:
forrest
Message:

Correcting previous fix for ClpPackedMatrix?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-1/ClpPackedMatrix.cpp

    r24 r25  
    691691    if (model->rowCopy()) {
    692692      // need to replace row by row
    693       double * newElement = new double[numberRows+numberColumns];
     693      double * newElement = new double[numberColumns];
    694694      // scale row copy
    695695      for (iRow=0;iRow<numberRows;iRow++) {
     
    699699        const int * columnsInThisRow = column + rowStart[iRow];
    700700        int number = rowStart[iRow+1]-rowStart[iRow];
     701        assert (number<=numberColumns);
    701702        for (j=0;j<number;j++) {
    702703          int iColumn = columnsInThisRow[j];
     
    744745      const int * columnsInThisRow = column + rowStart[iRow];
    745746      int number = rowStart[iRow+1]-rowStart[iRow];
     747      assert (number<=numberColumns);
    746748      for (j=0;j<number;j++) {
    747749        int iColumn = columnsInThisRow[j];
Note: See TracChangeset for help on using the changeset viewer.