Changeset 89 in tspsg-svn for trunk/src/tspsolver.h


Ignore:
Timestamp:
Jan 12, 2010, 4:27:52 PM (15 years ago)
Author:
laleppa
Message:

Back to double to maintain compatibility between platforms.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/tspsolver.h

    r87 r89  
    3434
    3535//! A matrix of city-to-city travel costs.
    36 typedef QList<QList<qreal> > TMatrix;
     36typedef QList<QList<double> > TMatrix;
    3737
    3838/*!
     
    6060struct SStep {
    6161        TMatrix matrix; //!< This step's matrix
    62         qreal price; //!< The price of travel to this step
     62        double price; //!< The price of travel to this step
    6363        SCandidate candidate; //!< A candiadate for branching in the current matrix
    6464        QList<SCandidate> alts; //!< A list of alternative branching candidates
     
    9898//      QHash<int,int> forbidden;
    9999
    100         qreal align(TMatrix &matrix);
     100        double align(TMatrix &matrix);
    101101        void cleanup();
    102102        void deleteNode(SStep *&node);
    103103        QList<SCandidate> findCandidate(const TMatrix &matrix, int &nRow, int &nCol) const;
    104         qreal findMinInCol(int nCol, const TMatrix &matrix, int exr = -1) const;
    105         qreal findMinInRow(int nRow, const TMatrix &matrix, int exc = -1) const;
     104        double findMinInCol(int nCol, const TMatrix &matrix, int exr = -1) const;
     105        double findMinInRow(int nRow, const TMatrix &matrix, int exc = -1) const;
    106106        bool hasSubCycles(int nRow, int nCol) const;
    107         void subCol(TMatrix &matrix, int nCol, qreal val);
    108         void subRow(TMatrix &matrix, int nRow, qreal val);
     107        void subCol(TMatrix &matrix, int nCol, double val);
     108        void subRow(TMatrix &matrix, int nRow, double val);
    109109};
    110110
Note: See TracChangeset for help on using the changeset viewer.