This class holds a row in a compressed form. More...
#include <BCP_matrix.hpp>
Public Member Functions | |
Query methods | |
double | LowerBound () const |
Return the lower bound. More... | |
double | UpperBound () const |
Return the upper bound. More... | |
General modifying methods | |
void | LowerBound (double lb) |
Set the lower bound to the given value. More... | |
void | UpperBound (double ub) |
Set the upper bound to the given value. More... | |
BCP_row & | operator= (const BCP_row &x) |
Assignment operator: copy over the contents of x . More... | |
void | assign (const int size, int *&ElementIndices, double *&ElementValues, const double LB, const double UB) |
Set the lower and upper bounds to the given values. More... | |
void | copy (const int size, const int *ElementIndices, const double *ElementValues, const double LB, const double UB) |
Copy the arguments into the appropriate data members. More... | |
void | copy (BCP_vec< int >::const_iterator firstind, BCP_vec< int >::const_iterator lastind, BCP_vec< double >::const_iterator firstval, BCP_vec< double >::const_iterator lastval, const double LB, const double UB) |
Same as the other copy() method, except that instead of using vectors the indices (values) are given in [firstind,lastind) ([firstval,lastval) ). More... | |
Constructors / Destructor | |
BCP_row () | |
The default constructor creates an empty row with -infinity as lower and +infinity as upper bound. More... | |
BCP_row (const BCP_row &x) | |
The copy constructor makes a copy of x . More... | |
BCP_row (BCP_vec< int >::const_iterator firstind, BCP_vec< int >::const_iterator lastind, BCP_vec< double >::const_iterator firstval, BCP_vec< double >::const_iterator lastval, const double LB, const double UB) | |
This constructor acts exactly like the copy method with the same argument list. More... | |
BCP_row (const int size, int *&ElementIndices, double *&ElementValues, const double LB, const double UB) | |
This constructor acts exactly like the assign method with the same argument list. More... | |
BCP_row (const CoinPackedVectorBase &vec, const double LB, const double UB) | |
The default constructor creates an empty row with -infinity as lower and +infinity as upper bound. More... | |
~BCP_row () | |
The destructor deletes all data members. More... | |
Protected Attributes | |
Data members | |
double | _LowerBound |
The lower bound corresponding to the row. More... | |
double | _UpperBound |
The upper bound corresponding to the row. More... | |
This class holds a row in a compressed form.
That is, it is a packed vector with a lower and upper bound.
Definition at line 152 of file BCP_matrix.hpp.
|
inline |
The default constructor creates an empty row with -infinity as lower and +infinity as upper bound.
Definition at line 228 of file BCP_matrix.hpp.
|
inline |
The copy constructor makes a copy of x
.
Definition at line 231 of file BCP_matrix.hpp.
|
inline |
This constructor acts exactly like the copy
method with the same argument list.
Definition at line 236 of file BCP_matrix.hpp.
|
inline |
This constructor acts exactly like the assign
method with the same argument list.
Definition at line 246 of file BCP_matrix.hpp.
|
inline |
The default constructor creates an empty row with -infinity as lower and +infinity as upper bound.
Definition at line 252 of file BCP_matrix.hpp.
|
inline |
The destructor deletes all data members.
Definition at line 257 of file BCP_matrix.hpp.
|
inline |
Return the lower bound.
Definition at line 167 of file BCP_matrix.hpp.
|
inline |
Return the upper bound.
Definition at line 169 of file BCP_matrix.hpp.
|
inline |
Set the lower bound to the given value.
Definition at line 176 of file BCP_matrix.hpp.
|
inline |
Set the upper bound to the given value.
Definition at line 178 of file BCP_matrix.hpp.
Assignment operator: copy over the contents of x
.
Definition at line 181 of file BCP_matrix.hpp.
|
inline |
Set the lower and upper bounds to the given values.
Also invokes the assign method of the underlying packed vector.
Definition at line 191 of file BCP_matrix.hpp.
|
inline |
Copy the arguments into the appropriate data members.
Definition at line 200 of file BCP_matrix.hpp.
|
inline |
Same as the other copy()
method, except that instead of using vectors the indices (values) are given in [firstind,lastind)
([firstval,lastval)
).
Definition at line 211 of file BCP_matrix.hpp.
|
protected |
The lower bound corresponding to the row.
Definition at line 157 of file BCP_matrix.hpp.
|
protected |
The upper bound corresponding to the row.
Definition at line 159 of file BCP_matrix.hpp.