src/work/athos/lp/lp_base.h
changeset 1246 925002e098e7
child 1247 60708e1475ae
equal deleted inserted replaced
-1:000000000000 0:3deb7b16715f
       
     1 // -*- c++ -*-
       
     2 #ifndef LEMON_LP_BASE_H
       
     3 #define LEMON_LP_BASE_H
       
     4 
       
     5 ///\file
       
     6 ///\brief The interface of the LP solver interface.
       
     7 namespace lemon {
       
     8   class LpSolverBase {
       
     9   protected:
       
    10 
       
    11     //MATRIX MANIPULATING FUNCTIONS
       
    12 
       
    13     /// \e
       
    14     virtual int _addCol() = 0;
       
    15     /// \e
       
    16     virtual int _addRow() = 0;
       
    17     /// \e
       
    18     /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
       
    19     virtual void _setRowCoeffs(int i, 
       
    20                                int  * &indices, 
       
    21                                double  * &doubles ) = 0;
       
    22     /// \e
       
    23     /// \warning Arrays are indexed from 1 (datum at index 0 is ignored)
       
    24     virtual void _setColCoeffs(int i, 
       
    25                                int  * &indices, 
       
    26                                double  * &doubles ) = 0;
       
    27     
       
    28   }  
       
    29 
       
    30 } //namespace lemon
       
    31 
       
    32 #endif //LEMON_LP_BASE_H