Cgl  0.60.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
LAP::TabRow Struct Reference

#include <CglLandPTabRow.hpp>

+ Inheritance diagram for LAP::TabRow:
+ Collaboration diagram for LAP::TabRow:

Public Member Functions

 TabRow ()
 
 TabRow (const CglLandPSimplex *si)
 
 TabRow (const TabRow &source)
 
TabRowoperator= (const TabRow &r)
 
bool operator== (const TabRow &r) const
 
 ~TabRow ()
 
void modularize (const bool *integerVar)
 
void print (std::ostream &os, int width=9, const int *nonBasics=NULL, int m=0)
 
const double & operator[] (const int &index) const
 
double & operator[] (const int &index)
 
- Public Member Functions inherited from CoinIndexedVector
int getNumElements () const
 Get the size. More...
 
const int * getIndices () const
 Get indices of elements. More...
 
int * getIndices ()
 Get element values. More...
 
double * denseVector () const
 Get the vector as a dense vector. More...
 
void setDenseVector (double *array)
 For very temporary use when user needs to borrow a dense vector. More...
 
void setIndexVector (int *array)
 For very temporary use when user needs to borrow an index vector. More...
 
double & operator[] (int i) const
 Access the i'th element of the full storage vector. More...
 
void setNumElements (int value)
 Set the size. More...
 
void clear ()
 Reset the vector (as if were just created an empty vector). This leaves arrays! More...
 
void empty ()
 Reset the vector (as if were just created an empty vector) More...
 
void reallyClear ()
 Clear even if in a bad way. More...
 
CoinIndexedVectoroperator= (const CoinIndexedVector &)
 Assignment operator. More...
 
CoinIndexedVectoroperator= (const CoinPackedVectorBase &rhs)
 Assignment operator from a CoinPackedVectorBase. More...
 
void copy (const CoinIndexedVector &rhs, double multiplier=1.0)
 Copy the contents of one vector into another. More...
 
void borrowVector (int size, int numberIndices, int *inds, double *elems)
 Borrow ownership of the arguments to this vector. More...
 
void returnVector ()
 Return ownership of the arguments to this vector. More...
 
void setVector (int numberIndices, const int *inds, const double *elems)
 Set vector numberIndices, indices, and elements. More...
 
void setVector (int size, int numberIndices, const int *inds, const double *elems)
 Set vector size, indices, and elements. More...
 
void setConstant (int size, const int *inds, double elems)
 Elements set to have the same scalar value. More...
 
void setFull (int size, const double *elems)
 Indices are not specified and are taken to be 0,1,...,size-1. More...
 
void setElement (int index, double element)
 Set an existing element in the indexed vector The first argument is the "index" into the elements() array. More...
 
void insert (int index, double element)
 Insert an element into the vector. More...
 
void quickInsert (int index, double element)
 Insert a nonzero element into the vector. More...
 
void add (int index, double element)
 Insert or if exists add an element into the vector Any resulting zero elements will be made tiny. More...
 
void quickAdd (int index, double element)
 Insert or if exists add an element into the vector Any resulting zero elements will be made tiny. More...
 
void quickAddNonZero (int index, double element)
 Insert or if exists add an element into the vector Any resulting zero elements will be made tiny. More...
 
void zero (int index)
 Makes nonzero tiny. More...
 
int clean (double tolerance)
 set all small values to zero and return number remaining More...
 
int cleanAndPack (double tolerance)
 Same but packs down. More...
 
int cleanAndPackSafe (double tolerance)
 Same but packs down and is safe (i.e. if order is odd) More...
 
void setPacked ()
 Mark as packed. More...
 
void checkClear ()
 For debug check vector is clear i.e. no elements. More...
 
void checkClean ()
 For debug check vector is clean i.e. elements match indices. More...
 
int scan ()
 Scan dense region and set up indices (returns number found) More...
 
int scan (int start, int end)
 Scan dense region from start to < end and set up indices returns number found. More...
 
int scan (double tolerance)
 Scan dense region and set up indices (returns number found). More...
 
int scan (int start, int end, double tolerance)
 Scan dense region from start to < end and set up indices returns number found. More...
 
int scanAndPack ()
 These are same but pack down. More...
 
int scanAndPack (int start, int end)
 
int scanAndPack (double tolerance)
 
int scanAndPack (int start, int end, double tolerance)
 
void createPacked (int number, const int *indices, const double *elements)
 Create packed array. More...
 
void createUnpacked (int number, const int *indices, const double *elements)
 Create unpacked array. More...
 
void createOneUnpackedElement (int index, double element)
 Create unpacked singleton. More...
 
void expand ()
 This is mainly for testing - goes from packed to indexed. More...
 
void append (const CoinPackedVectorBase &caboose)
 Append a CoinPackedVector to the end. More...
 
void append (const CoinIndexedVector &caboose)
 Append a CoinIndexedVector to the end (with extra space) More...
 
void append (CoinIndexedVector &other, int adjustIndex, bool zapElements=false)
 Append a CoinIndexedVector to the end and modify indices. More...
 
void swap (int i, int j)
 Swap values in positions i and j of indices and elements. More...
 
void truncate (int newSize)
 Throw away all entries in rows >= newSize. More...
 
void print () const
 Print out. More...
 
void operator+= (double value)
 add value to every entry More...
 
void operator-= (double value)
 subtract value from every entry More...
 
void operator*= (double value)
 multiply every entry by value More...
 
void operator/= (double value)
 divide every entry by value (** 0 vanishes) More...
 
bool operator== (const CoinPackedVectorBase &rhs) const
 Equal. More...
 
bool operator!= (const CoinPackedVectorBase &rhs) const
 Not equal. More...
 
bool operator== (const CoinIndexedVector &rhs) const
 Equal. More...
 
bool operator!= (const CoinIndexedVector &rhs) const
 Not equal. More...
 
int isApproximatelyEqual (const CoinIndexedVector &rhs, double tolerance=1.0e-8) const
 Equal with a tolerance (returns -1 or position of inequality). More...
 
int getMaxIndex () const
 Get value of maximum index. More...
 
int getMinIndex () const
 Get value of minimum index. More...
 
void sort ()
 Sort the indexed storage vector (increasing indices). More...
 
void sortIncrIndex ()
 
void sortDecrIndex ()
 
void sortIncrElement ()
 
void sortDecrElement ()
 
void sortPacked ()
 
CoinIndexedVector operator+ (const CoinIndexedVector &op2)
 Return the sum of two indexed vectors. More...
 
CoinIndexedVector operator- (const CoinIndexedVector &op2)
 Return the difference of two indexed vectors. More...
 
CoinIndexedVector operator* (const CoinIndexedVector &op2)
 Return the element-wise product of two indexed vectors. More...
 
CoinIndexedVector operator/ (const CoinIndexedVector &op2)
 Return the element-wise ratio of two indexed vectors (0.0/0.0 => 0.0) (0 vanishes) More...
 
void operator+= (const CoinIndexedVector &op2)
 The sum of two indexed vectors. More...
 
void operator-= (const CoinIndexedVector &op2)
 The difference of two indexed vectors. More...
 
void operator*= (const CoinIndexedVector &op2)
 The element-wise product of two indexed vectors. More...
 
void operator/= (const CoinIndexedVector &op2)
 The element-wise ratio of two indexed vectors (0.0/0.0 => 0.0) (0 vanishes) More...
 
void reserve (int n)
 Reserve space. More...
 
int capacity () const
 capacity returns the size which could be accomodated without having to reallocate storage. More...
 
void setCapacity (int value)
 
void setPackedMode (bool yesNo)
 Sets packed mode. More...
 
bool packedMode () const
 Gets packed mode. More...
 
 CoinIndexedVector ()
 Default constructor. More...
 
 CoinIndexedVector (int size, const int *inds, const double *elems)
 Alternate Constructors - set elements to vector of doubles. More...
 
 CoinIndexedVector (int size, const int *inds, double element)
 Alternate Constructors - set elements to same scalar value. More...
 
 CoinIndexedVector (int size, const double *elements)
 Alternate Constructors - construct full storage with indices 0 through size-1. More...
 
 CoinIndexedVector (int size)
 Alternate Constructors - just size. More...
 
 CoinIndexedVector (const CoinIndexedVector &)
 Copy constructor. More...
 
 CoinIndexedVector (const CoinIndexedVector *)
 Copy constructor.2. More...
 
 CoinIndexedVector (const CoinPackedVectorBase &rhs)
 Copy constructor from a PackedVectorBase. More...
 
 ~CoinIndexedVector ()
 Destructor. More...
 

Public Attributes

int num
 Row number. More...
 
double rhs
 Row right-hand-side. More...
 
const CglLandPSimplexsi_
 Row of what? More...
 
bool modularized_
 Flag to say if row is modularized. More...
 

Additional Inherited Members

- Protected Attributes inherited from CoinIndexedVector
int * indices_
 Vector indices. More...
 
double * elements_
 Vector elements. More...
 
int nElements_
 Size of indices and packed elements vectors. More...
 
int capacity_
 Amount of memory allocated for indices_, and elements_. More...
 
int offset_
 Offset to get where new allocated array. More...
 
bool packedMode_
 If true then is operating in packed mode. More...
 

Detailed Description

Definition at line 21 of file CglLandPTabRow.hpp.

Constructor & Destructor Documentation

LAP::TabRow::TabRow ( )
inline

Definition at line 33 of file CglLandPTabRow.hpp.

LAP::TabRow::TabRow ( const CglLandPSimplex si)
inline

Definition at line 36 of file CglLandPTabRow.hpp.

LAP::TabRow::TabRow ( const TabRow source)
inline

Definition at line 39 of file CglLandPTabRow.hpp.

LAP::TabRow::~TabRow ( )
inline

Definition at line 57 of file CglLandPTabRow.hpp.

Member Function Documentation

TabRow& LAP::TabRow::operator= ( const TabRow r)
inline

Definition at line 44 of file CglLandPTabRow.hpp.

bool LAP::TabRow::operator== ( const TabRow r) const
void LAP::TabRow::modularize ( const bool *  integerVar)
void LAP::TabRow::print ( std::ostream &  os,
int  width = 9,
const int *  nonBasics = NULL,
int  m = 0 
)
const double& LAP::TabRow::operator[] ( const int &  index) const
inline

Definition at line 66 of file CglLandPTabRow.hpp.

double& LAP::TabRow::operator[] ( const int &  index)
inline

Definition at line 72 of file CglLandPTabRow.hpp.

Member Data Documentation

int LAP::TabRow::num

Row number.

Definition at line 24 of file CglLandPTabRow.hpp.

double LAP::TabRow::rhs

Row right-hand-side.

Definition at line 26 of file CglLandPTabRow.hpp.

const CglLandPSimplex* LAP::TabRow::si_

Row of what?

Definition at line 28 of file CglLandPTabRow.hpp.

bool LAP::TabRow::modularized_

Flag to say if row is modularized.

Definition at line 31 of file CglLandPTabRow.hpp.


The documentation for this struct was generated from the following file: