Regina Calculation Engine
|
Used by LPInitialTableaux<LPConstraint> to store a single column of the adjusted matching equation matrix in sparse form. More...
#include <enumerate/ntreelp.h>
Public Member Functions | |
LPCol () | |
Initialises an empty column. More... | |
void | push (unsigned row, int val) |
Adds the given entry in the given row to this column. More... | |
Public Attributes | |
unsigned | nPlus |
The total number of +1 entries in this column. More... | |
unsigned | plus [4] |
The rows containing these +1 entries, in any order. More... | |
unsigned | nMinus |
The total number of -1 entries in this column. More... | |
unsigned | minus [4] |
The rows containing these -1 entries, in any order. More... | |
Used by LPInitialTableaux<LPConstraint> to store a single column of the adjusted matching equation matrix in sparse form.
See the LPInitialTableaux class notes for details on what the "adjusted matching equation matrix" means.
Specifically, an LPCol object stores the location of each +1 entry, and the location of each -1 entry. If some entry in the matrix is greater than +1 or less than -1, we represent it using multiple +1 or -1 entries in the same matrix location.
For any additional rows that represent extra linear constraints, we inherit the coefficients directly from LPConstraint::Coefficients.
|
inline |
Initialises an empty column.
|
inline |
Adds the given entry in the given row to this column.
row | the row containing the given value. |
val | the value at this location in the matrix. |
unsigned regina::LPCol< LPConstraint >::minus[4] |
The rows containing these -1 entries, in any order.
The same row may appear in this list more than once (indicating a -2, -3 or -4 entry in the matrix).
unsigned regina::LPCol< LPConstraint >::nMinus |
The total number of -1 entries in this column.
unsigned regina::LPCol< LPConstraint >::nPlus |
The total number of +1 entries in this column.
unsigned regina::LPCol< LPConstraint >::plus[4] |
The rows containing these +1 entries, in any order.
The same row may appear in this list more than once (indicating a +2, +3 or +4 entry in the matrix).