Ignore:
Timestamp:
Aug 9, 2007 3:51:21 PM (13 years ago)
Author:
jpfasano
Message:

Modified to remove MS Compiler messages:

ClpDynamicMatrix?.cpp
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(182) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(185) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(192) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(199) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(206) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(208) : warning C4305: '=' : truncation from 'double' to 'float'
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(213) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicmatrix.cpp(215) : warning C4305: '=' : truncation from 'double' to 'float'
ClpDynamicExampleMatrix?.cpp
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(126) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(129) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(136) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(148) : warning C4244: '=' : conversion from 'const double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(189) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(209) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(341) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(362) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data
d:\coin\coinall-trunk\clp\src\clpdynamicexamplematrix.cpp(650) : warning C4244: 'argument' : conversion from 'double' to 'float', possible loss of data

Attempted to follow John's instructions/guidance.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BSP/trunk/Clp/src/ClpDynamicMatrix.hpp

    r1055 r1072  
    9393  void initialProblem();
    9494  /** Adds in a column to gub structure (called from descendant) and returns sequence */
    95   int addColumn(int numberEntries,const int * row, const float * element,
    96                  float cost, float lower, float upper, int iSet,
     95  int addColumn(int numberEntries,const int * row, const double * element,
     96                 double cost, double lower, double upper, int iSet,
    9797                 DynamicStatus status);
    9898  /** If addColumn forces compression then this allows descendant to know what to do.
     
    188188  { return row_;}
    189189  /// elements
    190   inline float * element() const
     190  inline double * element() const
    191191  { return element_;}
    192192  /// costs
    193   inline float * cost() const
     193  inline double * cost() const
    194194  { return cost_;}
    195195  /// ids of active columns (just index here)
     
    197197  { return id_;}
    198198  /// Optional lower bounds on columns
    199   inline float * columnLower() const
     199  inline double * columnLower() const
    200200  { return columnLower_;}
    201201  /// Optional upper bounds on columns
    202   inline float * columnUpper() const
     202  inline double * columnUpper() const
    203203  { return columnUpper_;}
    204204  /// Lower bounds on sets
    205   inline float * lowerSet() const
     205  inline double * lowerSet() const
    206206  { return lowerSet_;}
    207207  /// Upper bounds on sets
    208   inline float * upperSet() const
     208  inline double * upperSet() const
    209209  { return upperSet_;}
    210210  /// size
     
    272272  double objectiveOffset_;
    273273  /// Lower bounds on sets
    274   float * lowerSet_;
     274  double * lowerSet_;
    275275  /// Upper bounds on sets
    276   float * upperSet_;
     276  double * upperSet_;
    277277  /// Status of slack on set
    278278  unsigned char * status_;
     
    318318  int * row_;
    319319  /// elements
    320   float * element_;
     320  double * element_;
    321321  /// costs
    322   float * cost_;
     322  double * cost_;
    323323  /// ids of active columns (just index here)
    324324  int * id_;
     
    326326  unsigned char * dynamicStatus_;
    327327  /// Optional lower bounds on columns
    328   float * columnLower_;
     328  double * columnLower_;
    329329  /// Optional upper bounds on columns
    330   float * columnUpper_;
     330  double * columnUpper_;
    331331   //@}
    332332};
Note: See TracChangeset for help on using the changeset viewer.