Ignore:
Timestamp:
Apr 28, 2008 11:38:45 AM (12 years ago)
Author:
forrest
Message:

many changes to try and improve performance

File:
1 edited

Legend:

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

    r1111 r1197  
    7676  if (numberColumns_) {
    7777    indices_ = new int [ 2*numberColumns_];
    78     memcpy(indices_,rhs.indices_,2*numberColumns_*sizeof(int));
     78    CoinMemcpyN(rhs.indices_,2*numberColumns_,indices_);
    7979  }
    8080  int numberRows = getNumRows();
     
    209209    if (numberColumns_) {
    210210      indices_ = new int [ 2*numberColumns_];
    211       memcpy(indices_,rhs.indices_,2*numberColumns_*sizeof(int));
     211      CoinMemcpyN(rhs.indices_,2*numberColumns_,indices_);
    212212    }
    213213  }
     
    899899        int iRowM,iRowP;
    900900        ClpSimplex::Status status = model->getStatus(iSequence);
    901        
     901
    902902        switch(status) {
    903903         
     
    10101010        int iRowM,iRowP;
    10111011        ClpSimplex::Status status = model->getStatus(iSequence);
    1012        
     1012
    10131013        switch(status) {
    10141014         
     
    11381138  CoinBigIndex size = 2*number;
    11391139  int * temp2 = new int [numberColumns_*2+size];
    1140   memcpy(temp2,indices_,numberColumns_*2*sizeof(int));
     1140  CoinMemcpyN(indices_,numberColumns_*2,temp2);
    11411141  delete [] indices_;
    11421142  indices_= temp2;
Note: See TracChangeset for help on using the changeset viewer.