Ignore:
Timestamp:
May 15, 2013 9:03:28 AM (6 years ago)
Author:
forrest
Message:

allow better handling of odd addColumns

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Clp/src/ClpPackedMatrix.cpp

    r1926 r1958  
    49114911          if (!matrix_->isColOrdered() && numberOther > matrix_->getNumRows())
    49124912               matrix_->setDimensions(numberOther, -1);
    4913           numberErrors = matrix_->appendCols(number, starts, index, element, numberOther);
     4913          if (element)
     4914            numberErrors = matrix_->appendCols(number, starts, index, element, numberOther);
     4915          else
     4916            matrix_->setDimensions(-1,matrix_->getNumCols()+number); // resize
    49144917     }
    49154918     clearCopies();
Note: See TracChangeset for help on using the changeset viewer.