Csak a te kedvedert.
authorathos
Wed, 23 Mar 2005 10:35:36 +0000
changeset 1246925002e098e7
parent 1245 e04370dd4ed4
child 1247 60708e1475ae
Csak a te kedvedert.
src/work/athos/lp/lp_base.cc
src/work/athos/lp/lp_base.h
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/work/athos/lp/lp_base.cc	Wed Mar 23 10:35:36 2005 +0000
     1.3 @@ -0,0 +1,13 @@
     1.4 +// -*- c++ -*-
     1.5 +#ifndef LEMON_LP_BASE_CC
     1.6 +#define LEMON_LP_BASE_CC
     1.7 +
     1.8 +///\file
     1.9 +///\brief The implementation of the LP solver interface.
    1.10 +
    1.11 +#include "lp_base.h"
    1.12 +namespace lemon {
    1.13 +
    1.14 +} //namespace lemon
    1.15 +
    1.16 +#endif //LEMON_LP_BASE_CC
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/src/work/athos/lp/lp_base.h	Wed Mar 23 10:35:36 2005 +0000
     2.3 @@ -0,0 +1,32 @@
     2.4 +// -*- c++ -*-
     2.5 +#ifndef LEMON_LP_BASE_H
     2.6 +#define LEMON_LP_BASE_H
     2.7 +
     2.8 +///\file
     2.9 +///\brief The interface of the LP solver interface.
    2.10 +namespace lemon {
    2.11 +  class LpSolverBase {
    2.12 +  protected:
    2.13 +
    2.14 +    //MATRIX MANIPULATING FUNCTIONS
    2.15 +
    2.16 +    /// \e
    2.17 +    virtual int _addCol() = 0;
    2.18 +    /// \e
    2.19 +    virtual int _addRow() = 0;
    2.20 +    /// \e
    2.21 +    /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
    2.22 +    virtual void _setRowCoeffs(int i, 
    2.23 +                               int  * &indices, 
    2.24 +                               double  * &doubles ) = 0;
    2.25 +    /// \e
    2.26 +    /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
    2.27 +    virtual void _setColCoeffs(int i, 
    2.28 +                               int  * &indices, 
    2.29 +                               double  * &doubles ) = 0;
    2.30 +    
    2.31 +  }  
    2.32 +
    2.33 +} //namespace lemon
    2.34 +
    2.35 +#endif //LEMON_LP_BASE_H