Changeset 564 for trunk/ClpPresolve.cpp


Ignore:
Timestamp:
Mar 16, 2005 2:44:46 PM (15 years ago)
Author:
forrest
Message:

marginally faster if not CoinPackedMatrix?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ClpPresolve.cpp

    r552 r564  
    10121012
    10131013  // same thing for row rep
    1014   m = new CoinPackedMatrix();
    1015   m->reverseOrderedCopyOf(*si->matrix());
    1016   m->removeGaps();
    1017 
    1018 
    1019   ClpDisjointCopyN(m->getVectorStarts(),  nrows_,  mrstrt_);
     1014  CoinPackedMatrix * mRow = new CoinPackedMatrix();
     1015  mRow->reverseOrderedCopyOf(*m);
     1016  mRow->removeGaps();
     1017
     1018
     1019  ClpDisjointCopyN(mRow->getVectorStarts(),  nrows_,  mrstrt_);
    10201020  mrstrt_[nrows_] = nelems_;
    1021   ClpDisjointCopyN(m->getVectorLengths(), nrows_,  hinrow_);
    1022   ClpDisjointCopyN(m->getIndices(),       nelems_, hcol_);
    1023   ClpDisjointCopyN(m->getElements(),      nelems_, rowels_);
    1024 
    1025   delete m;
     1021  ClpDisjointCopyN(mRow->getVectorLengths(), nrows_,  hinrow_);
     1022  ClpDisjointCopyN(mRow->getIndices(),       nelems_, hcol_);
     1023  ClpDisjointCopyN(mRow->getElements(),      nelems_, rowels_);
     1024
     1025  delete mRow;
    10261026  if (si->integerInformation()) {
    10271027    memcpy(integerType_,si->integerInformation(),ncols_*sizeof(char));
Note: See TracChangeset for help on using the changeset viewer.